Occurs after an has been removed from the Cache.

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

Syntax

C#
[ObsoleteAttribute("This method is deprecated. 'Please use RegisterCacheNotification(CacheDataNotificationCallback cacheDataNotificationCallback, EventType eventType, EventDataFilter datafilter)", 
	false)]
public virtual event CacheItemRemovedCallback ItemRemoved
Visual Basic
<ObsoleteAttribute("This method is deprecated. 'Please use RegisterCacheNotification(CacheDataNotificationCallback cacheDataNotificationCallback, EventType eventType, EventDataFilter datafilter)", 
	false)> 
Public Overridable Event ItemRemoved As CacheItemRemovedCallback
Visual C++
public:
[ObsoleteAttribute(L"This method is deprecated. 'Please use RegisterCacheNotification(CacheDataNotificationCallback cacheDataNotificationCallback, EventType eventType, EventDataFilter datafilter)", 
	false)]
virtual  event CacheItemRemovedCallback^ ItemRemoved {
	void add (CacheItemRemovedCallback^ value);
	void remove (CacheItemRemovedCallback^ value);
}

Value

Type: Alachisoft.NCache.Web.Caching..::..CacheItemRemovedCallback

Remarks

You can use this event to perform tasks when an item is removed from the Cache.

Since this callback is invoked every time an item is removed from the Cache, doing a lot of processing inside the callback might have an impact on the performance of the cache and cluster. It is therefore advisable to do minimal processing inside the handler.

Note: If an item is removed from the Cache for which a callback is supplied as parameter to Add(String, Object) or Insert(String, Object, NamedTagsDictionary) method; that callback will be invoked instead of this callback.

For more information on how to use this callback see the documentation for CacheItemRemovedCallback.

See Also