RedisCacheDependencyGarbageCollector Class |
Namespace: PostSharp.Patterns.Caching.Backends.Redis
Assembly: PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.10.14.0 (6.10.14.0)
public sealed class RedisCacheDependencyGarbageCollector : IDisposable
The RedisCacheDependencyGarbageCollector type exposes the following members.
Name | Description | |
---|---|---|
Connection |
Gets the Redis IConnectionMultiplexer used by the current object.
| |
Database |
Gets the Redis IDatabase used by the current object.
|
Name | Description | |
---|---|---|
Create(CachingBackend) |
Creates a new RedisCacheDependencyGarbageCollector that uses an existing DependenciesRedisCachingBackend object.
| |
Create(IConnectionMultiplexer, RedisCachingBackendConfiguration) |
Creates a new RedisCacheDependencyGarbageCollector given a Redis connection and a configuration object.
| |
CreateAsync(CachingBackend, CancellationToken) |
Asynchronously creates a new RedisCacheDependencyGarbageCollector that uses an existing RedisCachingBackend object.
| |
CreateAsync(IConnectionMultiplexer, RedisCachingBackendConfiguration, CancellationToken) |
Asynchronously creates a new RedisCacheDependencyGarbageCollector given a Redis connection and a configuration object.
| |
Dispose |
Disposes the current object.
| |
DisposeAsync |
Asynchronously disposes the current object.
| |
PerformFullCollectionAsync(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.
| |
PerformFullCollectionAsync(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.
|