RedisCacheInvalidator.CreateAsync Method |
Namespace: PostSharp.Patterns.Caching.Backends.Redis
Assembly: PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.9.11.0 (6.9.11.0)
public static Task<RedisCacheInvalidator> CreateAsync( CachingBackend backend, IConnectionMultiplexer connection, RedisCacheInvalidatorOptions options, CancellationToken cancellationToken = null )
Parameters
- backend
- Type: PostSharp.Patterns.Caching.Implementation.CachingBackend
A local (typically in-memory) caching back-end. - connection
- Type: IConnectionMultiplexer
A Redis connection. - options
- Type: PostSharp.Patterns.Caching.Backends.Redis.RedisCacheInvalidatorOptions
Options. - cancellationToken (Optional)
- Type: System.Threading.CancellationToken
A CancellationToken.
Return Value
Type: Task<RedisCacheInvalidator>A Task returning a new RedisCacheInvalidator.