Search:

Search all manuals
Search this manual
Manual
Membase Client Library: Java
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase Client Library: Java
Child Sections
Chapters

Chapter 4. Membase Client Library: Java — Retrieve Operations

Table of Contents

4.1. Synchronous get Methods
4.2. Asynchronous get Methods
4.3. Get-and-Touch Methods
4.4. CAS get Methods
4.5. Bulk get Methods

The retrieve operations get information from the Membase database. A summary of the available API calls is listed below.

Table 4.1. Java Client Library Retrieval Methods

MethodTitle
client.asyncGetAndTouch(key, expiry) Asynchronously get a value and update the expiration time for a given key
client.asyncGetAndTouch(key, expiry, transcoder) Asynchronously get a value and update the expiration time for a given key using a custom transcoder
client.asyncGet(key) Asynchronously get a single key
client.asyncGetBulk(keycollection) Asynchronously get multiple keys
client.asyncGetBulk(keyn) Asynchronously get multiple keys
client.asyncGetBulk(transcoder, keyn) Asynchronously get multiple keys using a custom transcoder
client.asyncGetBulk(keycollection, transcoder) Asynchronously get multiple keys using a custom transcoder
client.asyncGet(key, transcoder) Asynchronously get a single key using a custom transcoder
client.asyncGetLock(key [, getl-expiry ]) Asynchronously get a lock.
client.asyncGetLock(key [, getl-expiry ], transcoder) Asynchronously get a lock with transcoder.
client.asyncGets(key) Asynchronously get single key value with CAS value
client.asyncGets(key, transcoder) Asynchronously get single key value with CAS value using custom transcoder
client.getAndTouch(key, expiry) Get a value and update the expiration time for a given key
client.getAndTouch(key, expiry, transcoder) Get a value and update the expiration time for a given key using a custom transcoder
client.get(key) Get a single key
client.getAndLock(key [, getl-expiry ]) Get and lock Asynchronously
client.getAndLock(key [, getl-expiry ], transcoder) Get and lock
client.getBulk(keycollection) Get multiple keys
client.getBulk(keyn) Get multiple keys
client.getBulk(transcoder, keyn) Get multiple keys using a custom transcoder
client.getBulk(keycollection, transcoder) Get multiple keys using a custom transcoder
client.get(key, transcoder) Get a single key using a custom transcoder
client.gets(key) Get single key value with CAS value
client.gets(key, transcoder) Get single key value with CAS value using custom transcoder
client.unlock(key, casunique) Unlock