Пример #1
0
        public async Task <IDictionary <string, T> > GetAsync <T>(IEnumerable <string> keys)
        {
            keys.ToList().ForEach(key => GetKeySuffix(key));
            var result = await Task.Run(() => DefaultMemoryCache.Get <T>(keys));

            return(result);
        }
Пример #2
0
 public IDictionary <string, T> Get <T>(IEnumerable <string> keys)
 {
     keys.ToList().ForEach(key => GetKeySuffix(key));
     return(DefaultMemoryCache.Get <T>(keys));
 }
Пример #3
0
        public async Task <T> GetAsync <T>(string key)
        {
            var result = await Task.Run(() => DefaultMemoryCache.Get <T>(GetKeySuffix(key)));

            return(result);
        }
Пример #4
0
 public T Get <T>(string key)
 {
     return(DefaultMemoryCache.Get <T>(GetKeySuffix(key)));
 }
Пример #5
0
 public object Get(string key)
 {
     return(DefaultMemoryCache.Get(GetKeySuffix(key)));
 }