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

Table of Contents

3.1. Add Operations
3.2. Set Operations

The Membase Java Client Library store operations set information within the Membase database. These are distinct from the update operations in that the key does not have to exist within the Membase database before being stored.

Table 3.1. Java Client Library Store Methods

MethodTitle
client.add(key, expiry, value) Add a value with the specified key that does not already exist
client.add(key, expiry, value, persistto) Add a value using the specified key and observe it being persisted on master and more node(s).
client.add(key, expiry, value, persistto, replicateto) Add a value using the specified key and observe it being persisted on master and more node(s) and being replicated to one or more node(s).
client.add(key, expiry, value, replicateto) Add a value using the specified key and observe it being replicated to one or more node(s).
client.add(key, expiry, value, transcoder) Add a value that does not already exist using custom transcoder
client.replace(key, expiry, value) Update an existing key with a new value
client.replace(key, expiry, value, persistto) Replace a value using the specified key and observe it being persisted on master and more node(s).
client.replace(key, expiry, value, persistto, replicateto) Replace a value using the specified key and observe it being persisted on master and more node(s) and being replicated to one or more node(s).
client.replace(key, expiry, value, replicateto) Replace a value using the specified key and observe it being replicated to one or more node(s).
client.replace(key, expiry, value, transcoder) Update an existing key with a new value using a custom transcoder
client.set(key, expiry, value) Store a value using the specified key
client.set(key, expiry, value, persistto) Store a value using the specified key and observe it being persisted on master and more node(s).
client.set(key, expiry, value, persistto, replicateto) Store a value using the specified key and observe it being persisted on master and more node(s) and being replicated to one or more node(s).
client.set(key, expiry, value, replicateto) Store a value using the specified key and observe it being replicated to one or more node(s).
client.set(key, expiry, value, transcoder) Store a value using the specified key and a custom transcoder.