RedisCacheInvalidator.CreateAsync Method
CreateAsync(CachingBackend, IConnectionMultiplexer, RedisCacheInvalidatorOptions, CancellationToken)
Asynchronously creates a new RedisCacheInvalidator.
Declaration
public static Task<RedisCacheInvalidator> CreateAsync([Required] CachingBackend backend, [Required] IConnectionMultiplexer connection, [Required] RedisCacheInvalidatorOptions options, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
CachingBackend | backend | A local (typically in-memory) caching back-end. |
StackExchange.Redis.IConnectionMultiplexer | connection | A Redis connection. |
RedisCacheInvalidatorOptions | options | Options. |
System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken. |
Returns
Type | Description |
---|---|
Task<RedisCacheInvalidator> | A System.Threading.Tasks.Task returning a new RedisCacheInvalidator. |