Auto Start Cache on Boot
NCache provides the ease of automatically starting specified cache(s) on system startup.
For secured caches, you need to write the user credentials in NCacheService.exe.config file using the configurenodesecurity tool. This is to ensure that the credentials are fetched from the file automatically during cache startup, without any user intervention to login.
By default, Auto-start cache option is off. You can enable/disable this option by through NCache Manager:
- Go to Main tab and select the option Auto start this cache on service startup.
Select this option for each cache you want to automatically start at NCache service startup. This is the recommended way for enabling auto-startup option.
Apply configuration by right clicking on the cache name in Cache Explorer and selecting Apply Configuration option.
Whenever NCache service will be restarted, all caches which are set to auto start will automatically start after specified delay time interval.
Manually Editing NCache Configuration
For Community Edition, you can manually edit config.ncconf and client.ncconf located at %NCHOME%/config.
Make sure Cache Host Process is stopped before making any configuration changes. If it is not stopped and the changes are made, kill the Cache Host process and then start it.
- To enable auto start of cache, add the following tag within the
<cache-settings>tag in config.ncconf of EACH your cache server:
<cache-settings cache-name="demoCache" alias="" inproc="False" last-modified="" auto-start="True" data-format="Binary">
Repeat this step for all server nodes.
- Once changes are made, start the Cache Host process.