PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​ImplementationCache­Item­Priority
Open sandboxFocus

CacheItemPriority Class

Enumerates the priorities of a CacheItem.

Inheritance
CacheItemPriority
Namespace: PostSharp.Patterns.Caching.Implementation
Assembly: PostSharp.Patterns.Caching.dll
Syntax
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 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.

value__