public void HandleEvent(EntityInserted <Match> eventMessage) { var match = eventMessage.Entity; var matches = _matchService.GetAvailableMatch() ?? new List <MatchCacheModel>(); if (match != null) { var matchCacheModel = _matchService.CreateMatchCacheModel(match); matches.Add(matchCacheModel); _cacheManager.Set(AVAILABLE_MATCH_LIST, matches, 1 * 24 * 60); } }