Using Locks for Concurrent Updates
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
Explains the basic concepts of locking in detail along with their use cases.
Lock Items Exclusively
Explains how to lock items exclusively.
Lock Items with Cache Item versioning
Explains how to lock items using cache item versioning.