public async Task <XCacheItem <T> > Get <T>(string key) where T : class, new() { if (!_enabled) { return(null); } return(await _redisCache.GetEntity <XCacheItem <T> >(key)); }
public async Task <T> GetEntity <T>(string key) where T : class, new() { return(await _entityCache.GetEntity <T>(key)); }