private async Task <double> GetQuits(DsRequest request) { double leaver; string memKey = "quits" + request.StartTime.ToString("yyyyMMdd") + request.EndTime.ToString("yyyyMMdd"); if (!memoryCache.TryGetValue(memKey, out leaver)) { leaver = await StatsService.GetQuits(context, request); memoryCache.Set(memKey, leaver, CacheService.BuildCacheOptions); } return(leaver); }