RedisCache Class

RedisCache Class

Implementation of the Redis cache service.

public sealed class RedisCache: IAsyncCache, IInitializableProvider

Inheritance  IAsyncCache RedisCache

Implements  IInitializableProvider

Constructors

Name Description
RedisCache(IOptions<RedisCacheOptions>)

Properties

Name Description
CanClear
IsDistributedCached
IsInitialized
Name

Methods

Name Description
ClearCacheAsync()
GetAsync<T>(IEnumerable<string>)
GetOrCreateAsync<T>(string, Func<string, Task<T>>)
GetOrCreateAsync<T>(IEnumerable<string>, Func<IEnumerable<string>, Task<IDictionary<string, T>>>)
GetOrDefaultAsync<T>(string, T)
InitializeAsync()
RemoveAsync(string)
SetAsync<T>(string, T)
SetAsync<T>(string, T, TimeSpan)
SetAsync<T>(IDictionary<string, T>)