Enum EventType
NCache provides an EventType enum which specifies the type of event to be registered by the user. Event types are specified at the time of notification registration.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public enum EventType : int
Remarks
One or more event types can be specified.
Examples
To specify multiple events at the time of event registration you can use the following code:
cache.MessagingService.RegisterCacheNotification(key, onCacheDataModifiedCallback, EventType.ItemAdded | EventType.ItemRemoved, EventDataFilter.DataWithMetadata);
Fields
Name | Description |
---|---|
ItemAdded | User receives a notification when an item is added in cache. |
ItemRemoved | User receives a notification when an item is removed from cache |
ItemUpdated | when an item is updated in cache. |