コード例 #1
0
        private Dictionary <string, object> GetCacheHits()
        {
            var cacheHits = new Dictionary <string, object>();
            var cacheKeys = CacheKeys.GetKeysUsersCanAccess();

            foreach (var key in cacheKeys)
            {
                var result = _cacheService.TryGet(key);
                if (result != null)
                {
                    cacheHits.Add(key, result);
                }
            }

            return(cacheHits);
        }