Search:

Search all manuals
Search this manual
Manual
Membase Manual 1.7
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
5.3 Additional Protocol Operations
Chapter Sections
Chapters

5.3.1. getl extended operations

5.3.1. getl Use Cases

Note

Note, this documentation and functionality are still under development and may not necessarily match what you see here.

Through an extension, Membase has a feature allowing individual clients to be sure they have exclusive access to an item for a period of time. This is not yet supported functionality, and should be considered experimental.

The getl command takes two arguments a key and an expiration time. If no expiration time is set then the default expiration is 15 seconds. getl also has a maximum expiration time of 29 seconds so any expiration time greater than 29 seconds is automatically changed to 29 seconds. Below are four use cases that describe how getl works. In these use cases we use the set operation as an example of an operation that is blocked when a getl is applied to a key. Note however that the operations delete, incr, etc. also will be blocked by getl.

getl Use Cases

1. Timeout locks the key for the specified time

2. CAS unlocks the key before the timeout

3. GETL fails against a locked key

4. GETL honors an old timeout