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.
Declaration
[Obsolete("Use CachingBackend.CleanUpAsync.")]
public static Task PerformFullCollectionAsync(RedisCachingBackend backend, CancellationToken cancellationToken = default)Parameters
| Type | Name | Description |
|---|---|---|
| RedisCachingBackend | backend | A RedisCachingBackend that supports dependencies. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task | A Task. |