IBucketDecrement Method (String, UInt64) |
Decrements the value of a key by the delta. If the key doesn't exist, it will be created
and seeded with the defaut initial value 1.
Namespace: Couchbase.CoreAssembly: Couchbase (in Couchbase.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxIOperationResult<ulong> Decrement(
string key,
ulong delta
)
Function Decrement (
key As String,
delta As ULong
) As IOperationResult(Of ULong)
IOperationResult<unsigned long long>^ Decrement(
String^ key,
unsigned long long delta
)
abstract Decrement :
key : string *
delta : uint64 -> IOperationResult<uint64>
Parameters
- key
- Type: SystemString
The key to us for the counter. - delta
- Type: SystemUInt64
The number to increment the key by.
Return Value
Type:
IOperationResultUInt64If the key doesn't exist, the server will respond with the initial value. If not the decremented value will be returned.
See Also