You can use this to notify applications when their objects are updated or removed in the cache. Callbacks can be registered against EventType for the key the items is inserted to. To register different [!:EventDataFlter] for different EventType, you can call this function mutiple times with a different EventType. Callback are overriden for the same EventType if called again. ItemAdded is not supported yet.

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#
public void SetCacheDataNotification(
	CacheDataNotificationCallback callback,
	EventType eventType,
	EventDataFilter datafilter
)
Visual Basic
Public Sub SetCacheDataNotification ( 
	callback As CacheDataNotificationCallback,
	eventType As EventType,
	datafilter As EventDataFilter
)
Visual C++
public:
void SetCacheDataNotification(
	CacheDataNotificationCallback^ callback, 
	EventType eventType, 
	EventDataFilter datafilter
)

Parameters

callback
Type: Alachisoft.NCache.Web.Caching..::..CacheDataNotificationCallback
Callback to be raised when an item is updated or removed
eventType
Type: Alachisoft.NCache.Runtime.Events..::..EventType
EventType the callback is registered against
datafilter
Type: Alachisoft.NCache.Runtime.Events..::..EventDataFilter
EventDataFilter for every EventType registered against

See Also