Search:

Search all manuals
Search this manual
Manual
Membase Client Library: Python
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase Client Library: Python
Child Sections
Chapters

Chapter 5. Membase Client Library: Python — 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. 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. Python Client Library Update Methods

MethodTitle
object.append(key, value [, casunique ]) Append a value to an existing key
object.cas(key, expiry, flags, oldvalue, value) Compare and set a value providing the supplied CAS key matches
object.decr(key [, offset ] [, defaultvalue ] [, expiry ]) Decrement the value of an existing numeric key
object.delete(key [, casunique ] [, vbucket ]) Delete a key/value
object.flush() Deletes all values from the corresponding bucket
object.incr(key [, offset ] [, defaultvalue ] [, expiry ]) Increment the value of an existing numeric key
object.prepend(key, value [, casunique ]) Prepend a value to an existing key
object.sync_mutation(keyspecs) Sync mutation
object.sync_persistence(keyspecs) Sync persistence
object.sync_replication(sync-num-replicas, keyspecs) Sync replication
object.sync_replication_and_persistence(sync-num-replicas, keyspecs) Sync replication and persistence
object.sync_replication_or_persistence(sync-num-replicas, keyspecs) Sync replication or persistence
object.touch(key, expiry) Update the expiry time of an item