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); }
public IDictionary <string, T> Get <T>(IEnumerable <string> keys) { keys.ToList().ForEach(key => GetKeySuffix(key)); return(DefaultMemoryCache.Get <T>(keys)); }
public async Task <T> GetAsync <T>(string key) { var result = await Task.Run(() => DefaultMemoryCache.Get <T>(GetKeySuffix(key))); return(result); }
public T Get <T>(string key) { return(DefaultMemoryCache.Get <T>(GetKeySuffix(key))); }
public object Get(string key) { return(DefaultMemoryCache.Get(GetKeySuffix(key))); }