PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​Backends.​RedisRedis­Cache­Invalidator
Open sandboxFocus

RedisCacheInvalidator Class

An implementation of CacheInvalidator that uses Redis publish/subscribe channels to invalidate several instances of local caches.

Inheritance
RedisCacheInvalidator
Implements
IDisposable
Namespace: PostSharp.Patterns.Caching.Backends.Redis
Assembly: PostSharp.Patterns.Caching.Backends.Redis.dll
Syntax
public class RedisCacheInvalidator : CacheInvalidator

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(Boolean)

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.