PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace / Redis­Cache­Dependency­Garbage­Collector Class / Redis­Cache­Dependency­Garbage­Collector Methods

RedisCacheDependencyGarbageCollector Methods

The RedisCacheDependencyGarbageCollector type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreate(CachingBackend)
Creates a new RedisCacheDependencyGarbageCollector that uses an existing DependenciesRedisCachingBackend object.
Public methodStatic memberCreate(IConnectionMultiplexer, RedisCachingBackendConfiguration)
Creates a new RedisCacheDependencyGarbageCollector given a Redis connection and a configuration object.
Public methodStatic memberCreateAsync(CachingBackend, CancellationToken)
Asynchronously creates a new RedisCacheDependencyGarbageCollector that uses an existing RedisCachingBackend object.
Public methodStatic memberCreateAsync(IConnectionMultiplexer, RedisCachingBackendConfiguration, CancellationToken)
Asynchronously creates a new RedisCacheDependencyGarbageCollector given a Redis connection and a configuration object.
Public methodDispose
Disposes the current object.
Public methodDisposeAsync
Asynchronously disposes the current object.
Public methodStatic memberPerformFullCollectionAsync(RedisCachingBackend, CancellationToken)
Performs a full garbage collection on all Redis servers. This operation enumerates and validates all keys in the database, and can possibly last several minutes and affect performance in production.
Public methodStatic memberPerformFullCollectionAsync(RedisCachingBackend, IServer, CancellationToken)
Performs a full garbage collection on a given Redis server. This operation enumerates and validates all keys in the database, and can possibly last several minutes and affect performance in production.
See Also