Data Expiration & Invalidation
Data Expiration & Invalidation defines how cached data is automatically or conditionally removed or refreshed based on time limits, dependency changes, or external system updates. These mechanisms ensure 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
Describes how certain cached items can be automatically removed from the cache when required.
Cache Dependencies
Explains how cached items can be invalidated based on dependencies such as Key Dependency and Multi-Cache Key Dependency.