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: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic IOperationResult<ulong> Increment(
string key,
ulong delta
)
public IOperationResult<ulong> Increment(
string key,
ulong delta
)
Public Function Increment (
key As String,
delta As ULong
) As IOperationResult(Of ULong)
Public Function Increment (
key As String,
delta As ULong
) As IOperationResult(Of ULong)
public:
virtual IOperationResult<unsigned long long>^ Increment(
String^ key,
unsigned long long delta
) sealed
public:
virtual IOperationResult<unsigned long long>^ Increment(
String^ key,
unsigned long long delta
) sealed
abstract Increment :
key : string *
delta : uint64 -> IOperationResult<uint64>
override Increment :
key : string *
delta : uint64 -> IOperationResult<uint64>
abstract Increment :
key : string *
delta : uint64 -> IOperationResult<uint64>
override 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.
Implements
IBucket.Increment(String, UInt64)
See Also