Open sandboxFocus

Method CreateAsync

CreateAsync(CachingBackend, IConnectionMultiplexer, RedisCacheInvalidatorOptions, CancellationToken)

Asynchronously creates a new RedisCacheInvalidator.

Declaration
public static Task<RedisCacheInvalidator> CreateAsync(CachingBackend backend, IConnectionMultiplexer connection, RedisCacheInvalidatorOptions options, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CachingBackend backend

A local (typically in-memory) caching back-end.

IConnectionMultiplexer connection

A Redis connection.

RedisCacheInvalidatorOptions options

Options.

CancellationToken cancellationToken

A CancellationToken.

Returns
Type Description
Task<RedisCacheInvalidator>

A Task returning a new RedisCacheInvalidator.