What are the types of dependencies in cache?
Whenever you add an item to the cache, the dependency relationships is define that can force that item to be removed from the cache under specific activities of dependencies. For e.g. if the cache object is dependent on file and when the file data changes you want the cache object to be update. Following are some supported dependency:-
1) File dependency: - This dependency allows you to invalidate a specific cache item when a disk based file or files change.
2) Time-based expiration: - This dependency allows you to invalidate a specific cache item depending on predefined time.
3) Key dependency:-This dependency allows you to invalidate a specific cache item depending when another cached item changes.