CreateAsync(IConnectionMultiplexer, RedisCachingBackendConfiguration, CancellationToken)
Asynchronously creates a new RedisCachingBackend.
Declaration
public static Task<CachingBackend> CreateAsync(IConnectionMultiplexer connection, RedisCachingBackendConfiguration configuration, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IConnectionMultiplexer | connection | A Redis connection. |
RedisCachingBackendConfiguration | configuration | Configuration of the new back-end. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<CachingBackend> | A task returning a RedisCachingBackend, DependenciesRedisCachingBackend, or a TwoLayerCachingBackendEnhancer,
according to the properties of the |