Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: .NET (C#) 1.0
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library: .NET (C#) 1.0
Child Sections
Chapters

Chapter 7. Update Operations

Table of Contents

7.1. Append Methods
7.2. Decrement Methods
7.3. Remove Methods
7.4. Increment Methods
7.5. Prepend Methods
7.6. Touch Methods
7.7. Sync 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. .NET Client Library Update Methods

MethodTitle
object.Append(key, value) Append a value to an existing key
object.Append(key, casunique, value) Append a value to an existing key
object.Cas(storemode, key, value) Compare and set a value providing the supplied CAS key matches
object.Cas(storemode, key, value, casunique) Compare and set a value providing the supplied CAS key matches
object.Cas(storemode, key, value, expiresat, casunique) Compare and set a value using the specified key with a specific expiry time
object.Cas(storemode, key, value, validfor, casunique) Compare and set the specified key with expiry time
object.Decrement(key, defaultvalue, offset) Decrement the value of an existing numeric key
object.Decrement(key, defaultvalue, offset, casunique) Decrement the value of an existing numeric key
object.Decrement(key, defaultvalue, offset, expiresat, casunique) Decrement the value of an existing numeric key
object.Decrement(key, defaultvalue, offset, validfor, casunique) Decrement the value of an existing numeric key
object.Decrement(key, defaultvalue, offset, expiresat) Decrement the value of an existing numeric key
object.Decrement(key, defaultvalue, offset, validfor) Decrement the value of an existing numeric key
object.ExecuteAppend(key, value) Append a value to an existing key and return a concat operation result
object.ExecuteAppend(key, casunique, value) Append a value to an existing key and return a concat operation result
object.ExecuteCas(storemode, key, value) Store a value using the specified key and return a store operation result
object.ExecuteCas(storemode, key, value, casunique) Compare and set a value using the specified key and return a store operation result
object.ExecuteCas(storemode, key, value, expiresat, casunique) Compare and set a value using the specified key with a specific expiry time and return a store operation result
object.ExecuteCas(storemode, key, value, validfor, casunique) Compare and set a value using the specified key with expiry time and return a store operation result
object.ExecuteDecrement(key, defaultvalue, offset) Decrement the value of an existing numeric key
object.ExecuteDecrement(key, defaultvalue, offset, casunique) Decrement the value of an existing numeric key
object.ExecuteDecrement(key, defaultvalue, offset, expiresat, casunique) Decrement the value of an existing numeric key
object.ExecuteDecrement(key, defaultvalue, offset, validfor, casunique) Decrement the value of an existing numeric key
object.ExecuteDecrement(key, defaultvalue, offset, expiresat) Decrement the value of an existing numeric key
object.ExecuteDecrement(key, defaultvalue, offset, validfor) Decrement the value of an existing numeric key
object.ExecuteIncrement(key, defaultvalue, offset) Increment the value of an existing numeric key
object.ExecuteIncrement(key, defaultvalue, offset, casunique) Increment the value of an existing numeric key
object.ExecuteIncrement(key, defaultvalue, offset, expiresat, casunique) Increment the value of an existing numeric key
object.ExecuteIncrement(key, defaultvalue, offset, validfor, casunique) Increment the value of an existing numeric key
object.ExecuteIncrement(key, defaultvalue, offset, expiresat) Increment the value of an existing numeric key
object.ExecuteIncrement(key, defaultvalue, offset, validfor) Increment the value of an existing numeric key
object.ExecutePrepend(key, value) Prepend a value to an existing key and return a concat operation result
object.ExecutePrepend(key, casunique, value) Prepend a value to an existing key and return a concat operation result
object.ExecuteRemove(key) Delete a key/value and return a remove operation result
object.ExecuteRemove-cas(key, casunique) Delete a key with a CAS operation and return a remove operation result
object.ExecuteRemove-observe(key, persistto) Delete a key/value and return a remove operation result
object.Increment(key, defaultvalue, offset) Increment the value of an existing numeric key
object.Increment(key, defaultvalue, offset, casunique) Increment the value of an existing numeric key
object.Increment(key, defaultvalue, offset, expiresat, casunique) Increment the value of an existing numeric key
object.Increment(key, defaultvalue, offset, validfor, casunique) Increment the value of an existing numeric key
object.Increment(key, defaultvalue, offset, expiresat) Increment the value of an existing numeric key
object.Increment(key, defaultvalue, offset, validfor) Increment the value of an existing numeric key
object.Prepend(key, value) Prepend a value to an existing key
object.Prepend(key, casunique, value) Prepend a value to an existing key
object.Remove(key) Delete a key/value
object.Touch(key, expiry) Update the expiry time of an item