public async Task <IDictionary <string, CacheValue <T> > > GetAllAsync <T>(IEnumerable <string> keys)
        {
            var scopedDictionary = await UnscopedCache.GetAllAsync <T>(GetScopedCacheKeys(keys)).AnyContext();

            return(scopedDictionary.ToDictionary(kvp => UnscopeCacheKey(kvp.Key), kvp => kvp.Value));
        }
示例#2
0
 public Task <IDictionary <string, CacheValue <T> > > GetAllAsync <T>(IEnumerable <string> keys)
 {
     return(UnscopedCache.GetAllAsync <T>(GetScopedCacheKey(keys)));
 }