Custom Dependency [Deprecated]
NCache provides an Custom Dependency feature that allows you to remove data from the cache based on your custom logic. Additionally, it enables you to use the logic for a different database instead of the default ones supported by NCache. For example, you can use Custom Dependency to write your custom logic that makes a call to a web service for the invalidation of data depending upon your application's functionality.
In Custom Dependency, the concept of multi-threading has been incorporated. This means that instead of checking multiple dependencies sequentially, multiple threads are introduced to check dependencies and perform invalidation in parallel.
There are three types of Custom Dependencies supported in NCache:
- Extensible Dependency
- Bulk Extensible Dependency
- Notification-based Extensible Dependency
In This Section
Extensible Dependency
Explains how to implement and use Extensible Dependency to invalidate cached items using custom logic when specific criteria are met.
Bulk Extensible Dependency
Explains how to use and implement Bulk Extensible Dependency in NCache.
Notification-based Extensible Dependency
Explains how to use and implement Notification Based Extensible Dependency in NCache.