Auto Start Cache on Boot
NCache provides the ease of automatically starting specified cache(s) on system startup.
Note
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 one of the following ways:
Using 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.
Through config.ncconf
You can enable/disable auto start cache option
from config.ncconf file.
By default, auto-start
tag is "False". In order to enable this option, set this
tag to "True" for each cache you want to automatically start on service startup.
auto-start="True"
Moreover, you can add some delay time in auto-startup. To add delay time you have to add following tag in NCache service.config file. Value is specified in minutes.
<add key="NCacheServer.AutoStartDelay" value="5"/>
Whenever NCache service will be restarted, all caches which are set to auto start will automatically start after specified delay time interval.
Important
Restart NCache Service after adding AutoStartDelay
tag.