public Task <int> RemoveByPrefixAsync(string prefix) { return(UnscopedCache.RemoveByPrefixAsync(GetScopedCacheKey(prefix))); }
public Task <CacheValue <T> > GetAsync <T>(string key) { return(UnscopedCache.GetAsync <T>(GetScopedCacheKey(key))); }
public Task <long> SetIfLowerAsync(string key, long value, TimeSpan?expiresIn = null) { return(UnscopedCache.SetIfLowerAsync(GetScopedCacheKey(key), value, expiresIn)); }
public Task <long> SetRemoveAsync <T>(string key, IEnumerable <T> values, TimeSpan?expiresIn = null) { return(UnscopedCache.SetRemoveAsync(GetScopedCacheKey(key), values, expiresIn)); }
public Task SetExpirationAsync(string key, TimeSpan expiresIn) { return(UnscopedCache.SetExpirationAsync(GetScopedCacheKey(key), expiresIn)); }
public Task <double> SetIfHigherAsync(string key, double value, TimeSpan?expiresIn = null) { return(UnscopedCache.SetIfHigherAsync(GetScopedCacheKey(key), value, expiresIn)); }
public Task <bool> ExistsAsync(string key) { return(UnscopedCache.ExistsAsync(GetScopedCacheKey(key))); }
public Task <TimeSpan?> GetExpirationAsync(string key) { return(UnscopedCache.GetExpirationAsync(GetScopedCacheKey(key))); }
public Task <bool> ReplaceAsync <T>(string key, T value, TimeSpan?expiresIn = null) { return(UnscopedCache.ReplaceAsync(GetScopedCacheKey(key), value, expiresIn)); }
public Task <long> IncrementAsync(string key, long amount, TimeSpan?expiresIn = null) { return(UnscopedCache.IncrementAsync(GetScopedCacheKey(key), amount, expiresIn)); }
public Task <int> SetAllAsync <T>(IDictionary <string, T> values, TimeSpan?expiresIn = null) { return(UnscopedCache.SetAllAsync(values?.ToDictionary(kvp => GetScopedCacheKey(kvp.Key), kvp => kvp.Value), expiresIn)); }
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)); }
public Task <bool> RemoveIfEqualAsync <T>(string key, T expected) { return(UnscopedCache.RemoveIfEqualAsync(GetScopedCacheKey(key), expected)); }
public Task <bool> RemoveAsync(string key) { return(UnscopedCache.RemoveAsync(GetScopedCacheKey(key))); }
public Task <CacheValue <ICollection <T> > > GetListAsync <T>(string key, int?page = null, int pageSize = 100) { return(UnscopedCache.GetListAsync <T>(GetScopedCacheKey(key), page, pageSize)); }