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.1. get Methods

The get() methods allow for direct access to a given key/value pair.

API Callobject.get(key [, vbucket ])
Asynchronousno
Description Get one or more key values
Returnsobject ( Binary object )
Arguments 
key Document ID used to identify the value
String vbucket Name of the vBucket to be used for storage.

The get() method obtains an object stored in Couchbase.

For example:

couchbase.get("someKey")

If the request key does not exist in the database then the returned value is null.