MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​Backends.​RedisRedis­Garbage­Collection­Utilities
Open sandboxFocus

RedisGarbageCollectionUtilities Class

Exposes methods that perform garbage collection in a Redis server used as a cache where dependencies are enabled.

Inheritance
RedisGarbageCollectionUtilities
Namespace: Metalama.Patterns.Caching.Backends.Redis
Assembly: Metalama.Patterns.Caching.Backends.Redis.dll
Syntax
public static class RedisGarbageCollectionUtilities : Object

Methods

Name Description
PerformFullCollectionAsync(IConnectionMultiplexer, RedisCachingBackendConfiguration, IServiceProvider, CancellationToken)

Performs a full garbage collection on all Redis servers of a StackExchange.Redis.IConnectionMultiplexer. This operation enumerates and validates all keys in the database, and can possibly last several minutes and affect performance in production.

PerformFullCollectionAsync(IServer, RedisCachingBackendConfiguration, IServiceProvider, 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.