Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CacheItemPriority Enum
Definition
- Namespace:
- Microsoft.Extensions.Caching.Memory
- Assembly:
- Microsoft.Extensions.Caching.Abstractions.dll
- Package:
- Microsoft.Extensions.Caching.Abstractions v11.0.0-preview.5.26302.115
- Source:
- CacheItemPriority.cs
- Source:
- CacheItemPriority.cs
- Source:
- CacheItemPriority.cs
- Source:
- CacheItemPriority.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies how items are prioritized for preservation during a memory pressure triggered cleanup.
public enum class CacheItemPriority
public enum CacheItemPriority
type CacheItemPriority =
Public Enum CacheItemPriority
- Inheritance
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
Feedback
Was this page helpful?
