Specifies the reason an item was removed from the Cache.
Namespace: Alachisoft.NCache.Web.CachingAssembly: 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 name | Value | Description | |
|---|---|---|---|
| DependencyChanged | 0 | The item is removed from the cache because a file or key dependency changed. | |
| Expired | 1 | The item is removed from the cache because it expired. | |
| Removed | 2 | 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. | |
| Underused | 3 | 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.