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
Important
Make sure the cache is stopped before making any configuration changes.
- Specify cleanup interval through config.ncconf by specifying the
<cleanup>
tag in the<cache-settings>
tag:
<cache-settings ... >
<cleanup interval="15sec"/>
</cache-settings>
- Once changes are made, start the cache and restart NCache service.
See Also
Cache Size
Cache Isolation Levels
Error Logging
Management Operations