Cache Database Dependency on External Sources
NCache provides the user with the facility to synchronize cache data by providing dependencies on other items in the cache. Alternatively, NCache also provides dependencies dealing with items in different caches to maintain data integrity and scalability. NCache then further provides the ability to the user to add data in a cache, which is dependent on any external source, whether a file or an item placed outside the cache. This way cache data remains synchronized with the data present outside of the cache.
For example, there is an item placed in the cache. It has a dependency on a file placed at an external location which means the file does not exist in the cache. The application needs the data of the cache synchronized with the file placed somewhere out of the cache. So, whenever the file is modified or removed, the item dependent on the file will expire and eventually be removed on the next cleanup interval.
Moreover, there are ways through which the user can implement their own custom logic for the validation of certain data.
In this Section
Cache Dependency on File
Explains how to add data using File Dependency.
Custom Dependencies
Explains how the user can write his own dependency scenarios and use the feature of Custom Dependency.
Aggregate Dependencies
Explains how to add multiple dependencies with a single cache item.