Locking in NCache
NCache provides a clustered environment where multiple clients can access cache data. In such a situation, parallel requests may occur for same data changes e.g. multiple parallel threads from within multiple applications can issue an update call against the same data. NCache provides you with an efficient locking mechanism for data synchronization and integrity within the cache store being updated by different parallel clients. NCache internal locking guarantees the consistency of data across the entire cache cluster for every update for the same data. Beside this, NCache provides you with API to lock specific cache data, so that only a single thread can update or read it.
There are two types of locking available with NCache: