NCache 4.6 - Online Documentation

Locking Items in Cache (Pessimistic Locking)

A LockHandle is associated with item to be locked in NCache. This ensures that the particular item remains inaccessible throughout the cache. Two primary properties lockId and lockdate are used for locking while performing various cache operations.
NCache provides method calls exclusively for locking as well as numerous overloads that manipulate the locking mechanism.
In this section:
Explains how to lock items explicitly with API.
Explains how an item can be locked while fetching it from cache.
Explains how locking can be specified for a certain time period.
Explains how a lock can be released along with update operation.
Explains how a lock can be released explicitly.