Increments the value of a key by the delta as an asynchronous operation. 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.1.0.0 (2.1.0.0)
Syntax public Task<IOperationResult<ulong>> IncrementAsync(
string key,
ulong delta
)
public Task<IOperationResult<ulong>> IncrementAsync(
string key,
ulong delta
)
Public Function IncrementAsync (
key As String,
delta As ULong
) As Task(Of IOperationResult(Of ULong))
Public Function IncrementAsync (
key As String,
delta As ULong
) As Task(Of IOperationResult(Of ULong))
public:
virtual Task<IOperationResult<unsigned long long>^>^ IncrementAsync(
String^ key,
unsigned long long delta
) sealed
public:
virtual Task<IOperationResult<unsigned long long>^>^ IncrementAsync(
String^ key,
unsigned long long delta
) sealed
abstract IncrementAsync :
key : string *
delta : uint64 -> Task<IOperationResult<uint64>>
override IncrementAsync :
key : string *
delta : uint64 -> Task<IOperationResult<uint64>>
abstract IncrementAsync :
key : string *
delta : uint64 -> Task<IOperationResult<uint64>>
override IncrementAsync :
key : string *
delta : uint64 -> Task<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:
Task IOperationResult UInt64 The
Task TResult object representing the asynchronous operation.
Implements
IBucket IncrementAsync(String, UInt64)Remarks If the key doesn't exist, the server will respond with the initial value. If not the incremented value will be returned.
See Also