Open sandboxFocus

Class CacheCleanupOptions

Inheritance
CacheCleanupOptions
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public sealed class CacheCleanupOptions

Constructors

Name Description
CacheCleanupOptions()

Properties

Name Description
Default

Get the default options.

Dry

Gets or sets a value indicating whether the CleanUpAsync(CacheCleanupOptions, CancellationToken) method should report errors but not attempt to fix them.

MaxConcurrency

Gets or sets the maximum number of keys being analyzed and cleaned up concurrently. The default value is 20.

RemediationDelay

Gets or sets the delay between the moment an inconsistency is detected and moment a remediation is attempted. The default value is 5 seconds.

Sequential

Gets or sets a value indicating whether the CleanUpAsync(CacheCleanupOptions, CancellationToken) methodd should process items sequentially. By default, it processes them concurrently.

WaitDelay

Gets or sets the delay between the processing of two keys. The default value is 0.