Configure Cache Level Events
NCache event notifications let you design applications that react to various cache events. Events are fired upon the addition, update, and removal of an object. These notifications are disabled by default to save precious CPU and network resources. However, they can be enabled using the configuration files.
You can manually edit config.ncconf and client.ncconf located at %NCHOME%/config. %NCHOME% is the NCache install directory. These files can be edited through any text editor of your choice.
Important
In case you want to update any cache settings please refer to the Update Cache Config section to follow the set of steps.
Specify cache-level notifications through config.ncconf file located at %NCHOME%\config. %NCHOME%
is the NCache install directory. In config.ncconf of EACH server specify the <cache-notifications>
tag under the <cache-settings>
tag.
Configure Cache Level Events in NCache
In the example given below cache notifications are set to true for items removed, items added, and items updated.
<cache-config>
<cache-settings ...>
<cache-notifications item-remove="True" item-add="True"
item-update="True" />
</cache-settings>
</cache-config>
Note
Repeat this step for all server nodes.
See Also
Configure Caches
Configure Clients
Error Logging
General Cache Settings