Search:

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

Chapter 7. Ruby — Update Operations

Table of Contents

7.1. Append Methods
7.2. Compare and Swap
7.3. Decrement Methods
7.4. Delete Methods
7.5. Increment Methods
7.6. Prepend Methods
7.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 7.1. Ruby Client Library Update Methods

MethodTitle
object.append(key, value [, ruby-append-options ]) Append a value to an existing key
object.cas(key [, ruby-cas-options ]) Compare and set a value providing the supplied CAS key matches
object.decrement(key [, offset ] [, ruby-incr-decr-options ]) Decrement the value of an existing numeric key
object.delete(key [, ruby-delete-options ]) Delete a key/value
object.flush() Deletes all values from the corresponding bucket
object.increment(key [, offset ] [, ruby-incr-decr-options ]) Increment the value of an existing numeric key
object.prepend(key, value [, ruby-prepend-options ]) Prepend a value to an existing key
object.touch-many(keyn) Update the expiry time of an item
object.touch-one(key [, ruby-touch-options ] [, ruby-touch-keys ]) Update the expiry time of an item