This topic has not yet been rated - Rate this topic

CacheEntryRemovedReason Enumeration

Specifies the reason why a cache entry was removed or an entry is about to be removed.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)
public enum CacheEntryRemovedReason
Member nameDescription
RemovedA cache entry was removed by using the Remove or Set method.
ExpiredA cache entry was removed because it expired. Expiration can be based on an absolute time or on a sliding expiration time.
EvictedA 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.
ChangeMonitorChangedA cache entry was removed because a related dependency (such as a file or another cache entry) triggered eviction of the cache entry.
CacheSpecificEvictionA 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.

.NET Framework

Supported in: 4.5, 4

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.