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:
Using NCache Manager
Right Click on the Client Cache tree node in Cache Explorer for a cache. Click on the Create New Cache option in the right click menu.
Enter client cache Name and select client cache Sync Mode.
Click Next.
Select the required Isolation Level, it changes the Data Format accordingly.
Click Next.
In Specify storage options for primary cache dialog, you can configure following:
- You can change 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".
Click Finish.
This will create client cache on all client nodes and Client Cache Creation Status window is displayed showing client cache creation status for each client node.
Click Close and the newly created client cache will appear under Client Cache in the Cache Explorer.
Note
You might get prompted with a dialog box upon these changes, asking whether to reload or overwrite the cache config file. For more detail maintaining data integrity, refer to this chapter.
Using Windows PowerShell
New-ClientCache
cmdlet enables the user to create a new Client Cache.
This command creates a client cache demoClientCache for cache demoClusteredCache on node 20.200.21.144 having cache size 250MB.
New-ClientCache demoClusteredCache -ClientCacheName demoClientCache -Server 20.200.21.95 -ClientNode 20.200.21.144 -Size 250
See Also
Enable Client Cache on Client Nodes
Disable Client Cache on Client Nodes
Remove Client Cache
Management Operations