The get() methods allow for direct access
to a given key/value pair.
| API Call | object.get(key [, vbucket ]) | ||
| Asynchronous | no | ||
| Description | Get one or more key values | ||
| Returns | object (
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.