Table of Contents
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
| Method | Title |
|---|---|
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 |