Increments 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.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
SyntaxIOperationResult<ulong> Increment(
string key,
ulong delta
)
IOperationResult<ulong> Increment(
string key,
ulong delta
)
Function Increment (
key As String,
delta As ULong
) As IOperationResult(Of ULong)
Function Increment (
key As String,
delta As ULong
) As IOperationResult(Of ULong)
IOperationResult<unsigned long long>^ Increment(
String^ key,
unsigned long long delta
)
IOperationResult<unsigned long long>^ Increment(
String^ key,
unsigned long long delta
)
abstract Increment :
key : string *
delta : uint64 -> IOperationResult<uint64>
abstract Increment :
key : string *
delta : uint64 -> IOperationResult<uint64>
Parameters
- key
- Type: System.String
The key to us for the counter.
- delta
- Type: System.UInt64
The number to increment the key by.
Return Value
Type:
IOperationResult<UInt64>If the key doesn't exist, the server will respond with the initial value. If not the incremented value will be returned.
See Also