public async Task <IDictionary <string, T> > GetAll <T>(string key) { var stringlist = cacheClient.SearchKeys("*" + key + "*"); return(await cacheClient.GetAllAsync <T>(stringlist)); }
public async Task <IEnumerable <WordDefinition> > GetAllCacheEntries() { var result = await _cacheClient.GetAllAsync <WordDefinition>(GetCacheKeys()); return(result.Values); }
public async Task <IEnumerable <T> > WhereAsync(Func <T, bool> func) { return((await _cacheClient.GetAllAsync <T>(_cacheClient.SearchKeys($"{typeof(T).Name}*"))).Values .Where(func).ToList()); }