The Entry Processor has been introduced in NCache to allow users to execute their code (invocable functions) against a set of cache entries on the server side. NCache fully supports precise execution of Entry Processor regardless of the caching topology being used.
In the usual update scenario, you actually make two network trips to and from the cache. One, to fetch the element to be modified, and the second to save the updated value back into the cache. This is where Entry Processors come in handy: you can modify cache entries on the server side without involving these entries to travel over the network for fetch and update operations. This results in fairly noticeable performance improvement because of the avoidance of network trips and unnecessary consumption of resources.
In case of partitioned topologies, entries are processed on the same node where they reside.
In order to configure Entry Processor follow these steps.
The name of the cache used in this example is demoClusteredCache. Update the cache name according to your own cache.
In case you want to update any cache settings please refer to the Update Cache Config section to follow the set of steps.
Make sure Entry Processor has been implemented as described in the Entry Processor section. This assembly will then be deployed using following steps.
Create a new directory named 'deploy' in %NCHOME%.
Create a new directory in %NCHOME%/deploy and name it with the cache name where you want your assemblies to be deployed, for example demoClusteredCache.
Place the assembly CustomEntryProcessor.dll (created before step 2) for the implementation of Entry Processor in this folder.
The assembly will be placed at "C:\Program Files\NCache\deploy\demoClusteredCache".