Events
NCache event notifications let you design applications that react to various cache events. These notifications are disabled by default to save precious CPU and network resources. Events are fired upon the addition, update, and removal of an object or when the cache is cleared.
Important
In case you want to update any cache settings, please refer to the Update Cache Config section to follow the set of steps.
Configure Event Settings
On the server side, a priority queue is used between events and cache operations. The EventPriorityRatio
property defines the event ratio. The default value is 30. EventPriorityRatio
cannot be less than 1.
<add key="NCacheServer.EventPriorityRatio" value="30"/>
The server now sends bulk events to the client, but the bulk size is configurable. The default value is 50, and EventBulkCount
cannot be less than 1.
<add key="NCacheServer.EventBulkCount" value="50"/>
BulkEventCollectionInterval
defines the interval for bulk event collection. The default value is 2 seconds. BulkEventCollectionInterval
cannot be less than 1.
<add key="NCacheServer.BulkEventCollectionInterval" value="2"/>
NotificationEventInterval
is a server side polling notification interval for change
events. This value is in seconds. The minimum value is 1.
<add key="NCacheServer.NotificationEventInterval" value="1"/>