Configuring Data Expiration
Clean interval is the periodic interval after which the expired items are removed from the cache. By default, expiration Clean-Up interval is 15 seconds. However, it is changeable by the following ways:
Using NCache Manager
Click on the cache name in Cache Explorer to open cache settings.
Go to Policies tab.
Change the Clean Interval as per your needs.
You can choose any default expiration policy, and change its invalidation time accordingly.
Right click on cache name in Cache Explorer and select Apply Configuration option.
Manually Editing NCache Configuration
For Community Edition, you can manually edit config.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.
- Specify cleanup interval through config.ncconf by specifying the
<cleanup>tag in the
<cache-settings ... > <cleanup interval="15sec"/> </cache-settings>
- Once changes are made, start the Cache Host process.