Locking Data For Concurrency Control
NCache provides a clustered environment where multiple clients can access cache data. In such a situation, parallel requests may occur for the same data changes, e.g., multiple parallel threads from within multiple applications can issue an update call against the same data. So, to cater to concurrent updates in a cache, locks are used for maintaining data integrity.
If you want to make sure that no application or thread performs functions on any data set simultaneously, NCache provides two different locking techniques to cater to situations like that.
In this Section
Types of Locking
Explains the basic concepts of locking in detail along with their use cases.
Explains how to lock items exclusively.
Explains how to lock items using cache item versioning.