Ejemplo n.º 1
0
        public IActionResult Get()
        {
            var CacheKeyName = "dictionary";

            var dict = _caching.GetOrSetObjectFromCache(CacheKeyName, 20, GenerateDictionary);

            _caching.Invalidate(CacheKeyName);
            return(Ok(dict));
        }