Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Java 1.0
Community Wiki and Resources
Wiki: Java Client Library
Download Client Library
JavaDoc
Java Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
1 Getting Started
Chapter Sections
Chapters

1.3. Couchbase API Overview

The Couchbase client library has many API methods that you can use to implement your distributed memory magic. The client library methods below are grouped into categories so that you'll have a quick reference you can refer to later.

Table 1.1. Synchronous Methods

decrDecrement a key and return the value.
getGets a particular value from the cache.
getBulkGets many values at the same time.
getsGets a particular value with Check And Set support.
incrIncrement the value of a key.

Table 1.2. Synchronous Check And Set

casPerform a Check And Set operation.

Table 1.3. Asynchronous Methods

addAdds an object to the cache if it does not exist already.
deleteDeletes a value from the cache.
flushClears the cache on all servers.
appendAppend to an existing value in the cache.
asyncCASCheck and set values of particular keys.
asyncDecrDecrement a value.
asyncGetGet a particular value.
asyncGetBulkGet many values at the same time.
asyncGetsGet a value with CAS support.
asyncIncrIncrement a value.

Table 1.4. Status Methods

addObserverAdds an observer to watch the connection status.
getAvailableServersReturns a list of available servers.
getNodeLocatorReturns a read only instance of the node locator.
getStatsReturns connection statistics.
getTranscoderReturns the default transcoder instance.
getUnavailableServersReturns a list of the servers that are not available.
getVersionsReturns the versions of all connected servers.