Delegate CacheDataNotificationCallback
Defines a callback method for notifying applications when an item
is updated in the Alachisoft.
Assembly: Alachisoft.NCache.Client.dll
Syntax
public delegate void CacheDataNotificationCallback(string key, CacheEventArg cacheEventArgs);
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The cache key used to reference the item. |
Cache |
cacheEventArgs | The cache event arguments. |
Remarks
Since this handler is invoked every time an item is removed from the Alachisoft.
Examples
The following example demonstrates how to use the Cache
public static void OnCacheDataModification(string key, CacheEventArg args)
{
//
}
protected void Application_Start(object sender, EventArgs e)
{
try
{
ICache cache = CacheManager.GetCache("demoClusteredCache");
CacheDataNotificationCallback dataNotificationCallback = new CacheDataNotificationCallback(OnCacheDataModification);
}
catch(Exception e)
{
}
}