CacheEntryRemovedReason Enum
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 the reason why a cache entry was removed or an entry is about to be removed.
public enum class CacheEntryRemovedReason
public enum CacheEntryRemovedReason
type CacheEntryRemovedReason =
Public Enum CacheEntryRemovedReason
- Inheritance
Name | Value | Description |
---|---|---|
Removed | 0 | A cache entry was removed by using the Remove(String, String) or Set(String, Object, DateTimeOffset, String) method. |
Expired | 1 | A cache entry was removed because it expired. Expiration can be based on an absolute time or on a sliding expiration time. |
Evicted | 2 | A cache entry was removed to free memory in the cache. This occurs when a cache instance approaches cache-specific memory limits, or when a process or cache instance approaches computer-wide memory limits. |
ChangeMonitorChanged | 3 | A cache entry was removed because a related dependency (such as a file or another cache entry) triggered eviction of the cache entry. |
CacheSpecificEviction | 4 | A cache entry was evicted for as reason that is defined by a particular cache implementation. |
The CacheEntryRemovedReason enumeration is used to provide a predefined set of reasons why a cache entry was removed or is about to be removed. The CacheEntryRemovedArguments class takes a CacheEntryRemovedReason value as one of the parameter to pass to a callback method.
Produkt | Versionen |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: