Beispiel #1
0
        public async Task <object> GetCostVsSavings()
        {
            var cacheKey = CacheHelpers.GenerateCacheKeyForCostRecommendationSaving();

            return(await cache.GetOrCreateAsync(cacheKey, async entry =>
            {
                entry.AbsoluteExpirationRelativeToNow = CacheHelpers.absoluteExpirationRelativeToNow;
                return await costRecommendationsOperations.GetCostVsSavings();
            }));
        }