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
decr | Decrement a key and return the value. |
get | Gets a particular value from the cache. |
getBulk | Gets many values at the same time. |
gets | Gets a particular value with Check And Set support. |
incr | Increment the value of a key. |
Table 1.3. Asynchronous Methods
add | Adds an object to the cache if it does not exist already. |
delete | Deletes a value from the cache. |
flush | Clears the cache on all servers. |
append | Append to an existing value in the cache. |
asyncCAS | Check and set values of particular keys. |
asyncDecr | Decrement a value. |
asyncGet | Get a particular value. |
asyncGetBulk | Get many values at the same time. |
asyncGets | Get a value with CAS support. |
asyncIncr | Increment a value. |
Table 1.4. Status Methods
addObserver | Adds an observer to watch the connection status. |
getAvailableServers | Returns a list of available servers. |
getNodeLocator | Returns a read only instance of the node locator. |
getStats | Returns connection statistics. |
getTranscoder | Returns the default transcoder instance. |
getUnavailableServers | Returns a list of the servers that are not available. |
getVersions | Returns the versions of all connected servers. |