Search:

Search all manuals
Search this manual
Manual
Getting Started with Membase and Java
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Getting Started with Membase and Java
Chapter Sections
Chapters

4. Membase API Overview

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

Table 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 2. Synchronous Check And Set

casPerform a Check And Set operation.

Table 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.

Table 4. Asynchronous Check And Set

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 5. Status Methods

addObserverAdds an observer to watch the connection status.
getAvailableServersReturns a list of, shocker, 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.