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 same data changes e.g. multiple parallel threads from within multiple applications can issue an update call against the same data. So in order to cater 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 situations like that.
In this Section
Types and Usage of Locking in Cache
Explains the basic concepts of locking in detail along with their use cases.
Exclusive Locks on Items (Pessimistic Locking)
Explains how to lock items exclusively.
Locking with Cache Item Versioning (Optimistic locking)
Explains how to lock items using cache item versioning.