Create Client Cache
Client Cache is a cache that exists on client node. You can create client cache in either of the two ways described below.
Make sure that you have an existing client node in order to create a client cache. In order to add a client node please refer to the Add Client Node section.
Using NCache Web Manager
Launch NCache Web Manager by browsing to
<server-ip>:8251(Windows + Linux).
In the left navigation bar, click on Clustered Caches to which the client cache will be added. Against the cache name, click on View Details.
This opens up the detailed configuration page for the cache.
In the Client Cache tab, click on the New button.
- New Client Cache page opens up. Sepcify the client cache name and synchronization mode. Click Next.
- Specify the isolation level for the client cache. Inproc cache lives inside the application process where as an Outproc cache lives in separate service process. Click Next.
- Specify the maximum cache size. Click Next.
In Advanced options dialog, you can configure following:
You can change the Eviction policy and Eviction percentage; items will be evicted from cache using the selected policy and percentage value, if eviction is enabled.
You can change Clean interval value. Its default value is 15 sec.
You can make the cache to start automatically after service restart by checking checkbox "Auto start this cache on service startup".
You might get prompted with a dialog box upon these changes, asking whether to reload or overwrite the cache config file. For more detail on maintaining data integrity, refer to this chapter.
- A success notification is received and the Client Cache tab now shows options to configure client cache settings.
New-ClientCache cmdlet enables the user to create a new Client Cache.
This command creates a client cache demoClientCache for cache demoClusteredCache on node 22.214.171.124 having cache size 250MB.
New-ClientCache demoClusteredCache -ClientCacheName demoClientCache -Server 126.96.36.199 -ClientNode 188.8.131.52 -Size 1024