MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​BackendsClear­Cache­Options
Open sandboxFocus

ClearCacheOptions Enum

Options for the Clear(ClearCacheOptions) method.

Namespace: Metalama.Patterns.Caching.Backends
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
[Flags]
public enum ClearCacheOptions

Fields

Name Description
Compact

Uses the MemoryCache.Compact() method. Raises the ItemRemoved event, but does not guarantee that the cache is 100% free after the operation.

Default

Clears all cache layers. Does not guarantee to raise the ItemRemoved event.

Local

Clears only the local cache, but does not attempt to clear the remote cache. (for use with WithL1(OutOfProcessCachingBackendBuilder, LayeredCachingBackendConfiguration?).