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.
public static Task PerformFullCollectionAsync(IConnectionMultiplexer connection, RedisCachingBackendConfiguration? configuration = null, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default)
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.
public static Task PerformFullCollectionAsync(IServer server, RedisCachingBackendConfiguration? configuration = null, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default)