PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace/Redis­Cache­Dependency­Garbage­Collector Class/Redis­Cache­Dependency­Garbage­Collector Methods/Redis­Cache­Dependency­Garbage­Collector.​Perform­Full­Collection­Async Method/Redis­Cache­Dependency­Garbage­Collector.​Perform­Full­Collection­Async Method (Redis­Caching­Backend, Cancellation­Token)

RedisCacheDependencyGarbageCollector.PerformFullCollectionAsync Method (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.

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public static Task PerformFullCollectionAsync(
	RedisCachingBackend backend,
	CancellationToken cancellationToken = null
)

Parameters

backend
Type: PostSharp.Patterns.Caching.Backends.Redis.RedisCachingBackend
A RedisCachingBackend that supports dependencies.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
A CancellationToken.

Return Value

Type: Task
A Task.
See Also