Пример #1
0
        public async Task <XCacheItem <T> > Get <T>(string key) where T : class, new()
        {
            if (!_enabled)
            {
                return(null);
            }

            return(await _redisCache.GetEntity <XCacheItem <T> >(key));
        }
Пример #2
0
 public async Task <T> GetEntity <T>(string key)
     where T : class, new()
 {
     return(await _entityCache.GetEntity <T>(key));
 }