PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace

PostSharp.Patterns.Caching.Backends.Redis Namespace

This namespace contains an implementation of PostSharp.Patterns.Caching for Redis.
Public classRedisCacheDependencyGarbageCollector
Removes dependencies added when a RedisCachingBackend when items are expired or evicted from the cache. At least one instance (ideally a single instance) of the RedisCacheDependencyGarbageCollector must be running whenever a RedisCachingBackend instance that supports dependencies is running, otherwise the cache will use storage to store dependencies that are no longer relevant, and will not be removed otherwise. If no RedisCacheDependencyGarbageCollector is running while at least one dependency-enabled RedisCachingBackend instance is running, you must initiate full garbage collection by calling the PerformFullCollectionAsync(RedisCachingBackend, CancellationToken) method.
Public classRedisCacheInvalidator
An implementation of CacheInvalidator that uses Redis publish/subscribe channels to invalidate several instances of local caches.
Public classRedisCacheInvalidatorOptions
Options for RedisCacheInvalidator.
Public classRedisCachingBackend
A CachingBackend for Redis, based on the StackExchange.Redis client.
Public classRedisCachingBackendConfiguration
Configuration for RedisCachingBackend.