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

CacheItemPriority Enum

Enumerates the priorities of a CacheItem.

Namespace: Metalama.Patterns.Caching.Implementation
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
[RunTimeOrCompileTime]
public enum CacheItemPriority

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 MemoryCachingBackend, this is the same as Default.

Low

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

NotRemovable

Never removed, unless explicitly required through invalidation methods.