CacheEntryRemovedReason Enumeration
Specifies the reason why a cache entry was removed or an entry is about to be removed.
Assembly: System.Runtime.Caching (in System.Runtime.Caching.dll)
| Member name | Description | |
|---|---|---|
| CacheSpecificEviction | A cache entry was evicted for as reason that is defined by a particular cache implementation. | |
| ChangeMonitorChanged | A cache entry was removed because a related dependency (such as a file or another cache entry) triggered eviction of the cache entry. | |
| Evicted | 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. | |
| Expired | A cache entry was removed because it expired. Expiration can be based on an absolute time or on a sliding expiration time. | |
| Removed |
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.
Available since 4.0
CacheEntryRemovedCallback
CacheEntryRemovedReason
System.Runtime.Caching Namespace