Dependency on External Sources [Deprecated]
NCache provides the ability to the user to add data in a cache, which is dependent on any external source, whether a file or a database item.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 cache synchronized with a file located outside 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
File Dependency
Explains how to add data using File Dependency.
Custom Dependency
Explains how the user can write his own dependency logics and use the feature of Custom Dependency.
Aggregate Dependency
Explains how to add multiple dependencies with a single cache item.