Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Python 1.0
Community Wiki and Resources
Download Client Library
Python Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
5 Retrieve Operations
Chapter Sections
Chapters

5.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 Couchbase and locks for time limited exclusive access. Default lock expiry is 15 seconds.

For example:

couchbase.getl("somekey",30)