Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Python 1.0
Community Wiki and Resources
Download Client Library
Python Client Library
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library: Python 1.0
Child Sections
Chapters

Chapter 6. Update Operations

Table of Contents

6.1. Append Methods
6.2. Prepend Methods
6.3. Check-and-Set Methods
6.4. Delete Methods
6.5. Decrement Methods
6.6. Increment Methods
6.7. Touch Methods

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

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