Method SetCacheDataNotification
SetCacheDataNotification(CacheDataNotificationCallback, EventType)
You can use this to notify applications when their objects are updated or removed in the cache. Callbacks can be registered against Alachisoft.NCache.Runtime.Events.EventType for the key the items is inserted to. Callback are overriden for the same Alachisoft.NCache.Runtime.Events.EventType if called again. Alachisoft.NCache.Runtime.Events.EventType.ItemAdded is not supported yet.
Declaration
public void SetCacheDataNotification(CacheDataNotificationCallback callback, EventType eventType)
Parameters
Type | Name | Description |
---|---|---|
CacheDataNotificationCallback | callback | Callback to be raised when an item is updated or removed |
Alachisoft.NCache.Runtime.Events.EventType | eventType | Alachisoft.NCache.Runtime.Events.EventType the callback is registered against |
SetCacheDataNotification(CacheDataNotificationCallback, EventType, EventDataFilter)
You can use this to notify applications when their objects are updated or removed in the cache. Callbacks can be registered against Alachisoft.NCache.Runtime.Events.EventType for the key the items is inserted to. To register different Alachisoft.NCache.Runtime.Events.EventDataFilter for different Alachisoft.NCache.Runtime.Events.EventType, you can call this function mutiple times with a different Alachisoft.NCache.Runtime.Events.EventType. Callback are overriden for the same Alachisoft.NCache.Runtime.Events.EventType if called again. Alachisoft.NCache.Runtime.Events.EventType.ItemAdded is not supported yet.
Declaration
public void SetCacheDataNotification(CacheDataNotificationCallback callback, EventType eventType, EventDataFilter datafilter)
Parameters
Type | Name | Description |
---|---|---|
CacheDataNotificationCallback | callback | Callback to be raised when an item is updated or removed |
Alachisoft.NCache.Runtime.Events.EventType | eventType | Alachisoft.NCache.Runtime.Events.EventType the callback is registered against |
Alachisoft.NCache.Runtime.Events.EventDataFilter | datafilter | Alachisoft.NCache.Runtime.Events.EventDataFilter for every Alachisoft.NCache.Runtime.Events.EventType registered against |