NCache 4.4 - Online Documentation

Creating Local Cache

 
Local cache can be created in two ways:
 
  • Using NCache Manager
  • Using Command Line Tools
 
Using NCache Manager
 
  • To create a new Local Cache through NCache Manager, from the 'File' menu select 'New' -> 'Cache'.
 
 
  • A 'New Cache Wizard' will appear. In New Cache Wizard, specify the server IP address and click Next.
 
 
  • Specify the name of the cache in text box and click Next.
 
 
  • Change the cache size if required and click Next.
 
 
  • In Advanced options dialog, you can configure the following settings:
 
Eviction Policy: Specifies the eviction policy to determine which items are to be removed from cache, if it is full, to accommodate new items. You can change the eviction policy. Eviction policy will be configured but if you want this feature, then you have to turn it on after cache creation.
Eviction percentage: Specifies the percentage of items to be removed on each eviction. It can also be changed. Items will be evicted from cache using this percentage value if eviction is enabled.
Clean Interval: The periodic interval after which the expired items are removed from the cache. Its default value is 15 sec.
Start this cache on finish: If this check box is checked then this new cache will start automatically as you click the finish. Using “Auto start this cache on service startup” option, user will be able to mark the cache as a startup cache which will be started on cache service startup. 
 
  • Click Finish. Created cache will be appeared in Cache Explorer under Local Caches node hierarchy.
 
 
Using Command Line Tool
 
  • Open command prompt
  • Go to the NCache tools directory: cd %NCHOME%/bin/tools
  • Use createcache.exe, provide the required information: 
createcache.exe Cache /s test1 /S 250
  • Hit ENTER key, it will create Cache of local topology of size 250mb on test1 node.
 
See Also