Search:

Search all manuals
Search this manual
Manual
Membase Client Library: Python
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
4 Membase Client Library: Python — Retrieve Operations
Chapter Sections
Chapters

4.2. getl Methods

The "get with lock" getl() method allows for direct access to a given key/value pair while locking, providing exclusive access to an item for a period of time.

The getl() method obtains an object stored in Membase and locks for time limited exclusive access. Default lock expiry is 15 seconds.

For example:

membase.getl("somekey",30)