MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​ImplementationCache­Item­Priority
Open sandboxFocus

CacheItemPriority Class

Enumerates the priorities of a CacheItem.

Inheritance
System.Object
CacheItemPriority
Namespace: Metalama.Patterns.Caching.Implementation
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
[RunTimeOrCompileTime]
public sealed class CacheItemPriority : Enum

Fields

Name Description
Default

Default priority means "Default" for System.Runtime.Caching.MemoryCache and it means "Normal" for Microsoft.Extensions.Caching.Memory.IMemoryCache.

High

This cache item is removed later if the cache needs to be compacted. For Metalama.Patterns.Caching.Backends.MemoryCachingBackend, this is the same as Default.

Low

This cache item is removed earlier if the cache needs to be compacted. For Metalama.Patterns.Caching.Backends.MemoryCachingBackend, this is the same as Default.

NotRemovable

Never removed, unless explicitly required through invalidation methods.

value__