Extensible Database Dependency
NCache provides an Extensible Database 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 Extensible Database 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 two types of Extensible Database Dependencies supported in NCache:
- Bulk Extensible Dependency
- Notification-based Extensible Dependency
In This Section
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.
Polling-based Database Dependency
Explains how to use this Polling-based dependency to synchronize cache with any database.