An implementation of CacheInvalidator that uses Redis publish/subscribe channels to invalidate several instances of local caches.
Implements
Namespace: PostSharp.Patterns.Caching.Backends.Redis
Assembly: PostSharp.Patterns.Caching.Backends.Redis.dll
Syntax
public class RedisCacheInvalidator : CacheInvalidator, IDisposable
Properties
Name | Description |
---|---|
Connection | Gets the Redis StackExchange.Redis.IConnectionMultiplexer used by the current RedisCacheInvalidator. |
Methods
Name | Description |
---|---|
Create(CachingBackend, IConnectionMultiplexer, RedisCacheInvalidatorOptions) | Creates a new RedisCacheInvalidator. |
CreateAsync(CachingBackend, IConnectionMultiplexer, RedisCacheInvalidatorOptions, CancellationToken) | Asynchronously creates a new RedisCacheInvalidator. |
DisposeAsyncCore(CancellationToken) | Asynchronously disposes the current CachingBackend. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. |
DisposeCore(bool) | Synchronously disposes the current CachingBackend. This protected method is part of the implementation API and is meant to be overridden in user code, not invoked. |
SendMessageAsync(string, CancellationToken) | Sends an invalidation message over the message bus of the implementation. |