Jump to content


How to make NCache operations autonomous?


  • Please log in to reply
No replies to this topic

#1 Guest_Ron_*

Guest_Ron_*
  • Guests

Posted 12 November 2010 - 06:18 AM

NCache is designed to work in distributed environment where multiple clients can access a single cache and can perform operations in parallel. In this case multiple clients can perform operations on a single cache item. However the order of these operations accessing a single cache item is not deterministic.

NCache provides you with a couple of features to make these operations autonomous. They are mentioned below:

Locking: NCache provides locking mechanism in which a client can acquire a lock on a particular key for a certain time period during which no other client can do operations on it. Operations will only be successful when this lock is released.

To implement NCache locking please refer to the forum post (NCache Locking API).

Versioning: NCache provides you with feature of maintaining cache items with versions which would help clients to check versions before modifying them. Versioning is used check the data consistency on get operation.

To implement NCache versioning please refer to the forum post (NCache Versioning API).





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users