CacheItemPriority Enum

Definition

Specifies how items are prioritized for preservation during a memory pressure triggered cleanup.

C#
public enum CacheItemPriority
Inheritance
CacheItemPriority

Fields

Name Value Description
Low 0

The cache entry should be removed as soon as possible during memory pressure triggered cleanup.

Normal 1

The cache entry should be removed if there is no other low priority cache entries during memory pressure triggered cleanup.

High 2

The cache entry should be removed only when there is no other low or normal priority cache entries during memory pressure triggered cleanup.

NeverRemove 3

The cache entry should never be removed during memory pressure triggered cleanup.

Applies to

Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)