Click or drag to resize
IBucketDecrement Method (String)
Decrements the value of a key by one. If the key doesn't exist, it will be created and seeded with 1.

Namespace: Couchbase.Core
Assembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IOperationResult<ulong> Decrement(
	string key
)

Parameters

key
Type: SystemString
The key to us for the counter.

Return Value

Type: IOperationResultUInt64
If the key doesn't exist, the server will respond with the initial value. If not the decremented value will be returned.
See Also