Data Expiration and Invalidation
Data Expiration and Invalidation determine how cached data is automatically or conditionally removed or refreshed based on time limits, dependency changes, or external system updates. These mechanisms help maintain cache consistency with underlying data sources while balancing performance and freshness.
NCache provides multiple strategies to control data lifecycle in cache, ranging from time-based expiration policies to dependency-driven invalidation models.
In This Section
Expirations
Explains how absolute, sliding, and default expiration policies automatically remove cache items based on time.
Cache Dependencies
Explains how changes to related cache items can invalidate dependent items in the cache.