Specifies the reason an item was removed from the Cache.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)

Syntax

C#
[SerializableAttribute]
public enum CacheItemRemovedReason
Visual Basic
<SerializableAttribute> _
Public Enumeration CacheItemRemovedReason
Visual C++
[SerializableAttribute]
public enum class CacheItemRemovedReason

Members

Member nameValueDescription
DependencyChanged0 The item is removed from the cache because a file or key dependency changed.
Expired1 The item is removed from the cache because it expired.
Removed2 The item is removed from the cache by a Remove(String) method call or by an Insert(String, Object, NamedTagsDictionary) method call that specified the same key.
Underused3 The item is removed from the cache because the system removed it to free memory.

Remarks

This enumeration works in concert with the CacheItemRemovedCallback delegate to notify your applications when and why an object was removed from the Cache.

See Also