Occurs after the Cache is cleared.

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


public virtual event CacheClearedCallback CacheCleared
Visual Basic
Public Overridable Event CacheCleared As CacheClearedCallback
Visual C++
virtual  event CacheClearedCallback^ CacheCleared {
	void add (CacheClearedCallback^ value);
	void remove (CacheClearedCallback^ value);


You can use this event to perform tasks when the Cache is cleared.

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.

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

See Also