PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Cache­Item­Priority Enumeration

CacheItemPriority Enumeration

Enumerates the priorities of a CacheItem.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public enum CacheItemPriority
Members
  Member nameValueDescription
Default0 Default priority means "Default" for System.Runtime.Caching.MemoryCache and it means "Normal" for Microsoft.Extensions.Caching.Memory.IMemoryCache.
NotRemovable1 Never removed, unless explicitly required through invalidation methods.
Low2 This cache item is removed earlier if the cache needs to be compacted. For MemoryCachingBackend, this is the same as Default.
High3 This cache item is removed later if the cache needs to be compacted. For MemoryCachingBackend, this is the same as Default.
See Also