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 5. Membase Client Library: Java — Update Operations

Table of Contents

5.1. Append Methods
5.2. Prepend Methods
5.3. Check-and-Set Methods
5.4. Delete Methods
5.5. Decrement Methods
5.6. Increment Methods
5.7. Replace Methods
5.8. Touch Methods

The update methods support different methods of updating and changing existing information within Membase. A list of the available methods is listed below.

Table 5.1. Java Client Library Update Methods

MethodTitle
client.append(casunique, key, value) Append a value to an existing key
client.append(casunique, key, value, transcoder) Append a value to an existing key
client.asyncCAS(key, casunique, value) Asynchronously compare and set a value
client.asyncCAS(key, casunique, expiry, value, transcoder) Asynchronously compare and set a value with custom transcoder and expiry
client.asyncCAS(key, casunique, value, transcoder) Asynchronously compare and set a value with custom transcoder
client.asyncDecr(key, offset) Asynchronously decrement the value of an existing key
client.asyncIncr(key, offset) Asynchronously increment the value of an existing key
client.cas(key, casunique, value) Compare and set
client.cas(key, casunique, expiry, value, transcoder) Compare and set with a custom transcoder and expiry
client.cas(key, casunique, value, transcoder) Compare and set with a custom transcoder
client.decr(key, offset) Decrement the value of an existing numeric key
client.decr(key, offset, default) Decrement the value of a key, setting the initial value if the key didn't already exist
client.decr(key, offset, default, expiry) Decrement the value of a key, setting the initial value if the key didn't already exist, with an expiry
client.delete(key) Delete the specified key
client.incr(key, offset) Increment the value of an existing numeric key
client.incr(key, offset, default) Increment the value of an existing numeric key
client.incr(key, offset, default, expiry) Increment the value of an existing numeric key
client.prepend(casunique, key, value) Prepend a value to an existing key using the default transcoder
client.prepend(casunique, key, value, transcoder) Prepend a value to an existing key using a custom transcoder
client.touch(key, expiry) Update the expiry time of an item