Increments the value of a key by one as an asynchronous operation. If the key doesn't exist, it will be created.
and seeded with 1.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic Task<IOperationResult<ulong>> IncrementAsync(
string key
)
public Task<IOperationResult<ulong>> IncrementAsync(
string key
)
Public Function IncrementAsync (
key As String
) As Task(Of IOperationResult(Of ULong))
Public Function IncrementAsync (
key As String
) As Task(Of IOperationResult(Of ULong))
public:
virtual Task<IOperationResult<unsigned long long>^>^ IncrementAsync(
String^ key
) sealed
public:
virtual Task<IOperationResult<unsigned long long>^>^ IncrementAsync(
String^ key
) sealed
abstract IncrementAsync :
key : string -> Task<IOperationResult<uint64>>
override IncrementAsync :
key : string -> Task<IOperationResult<uint64>>
abstract IncrementAsync :
key : string -> Task<IOperationResult<uint64>>
override IncrementAsync :
key : string -> Task<IOperationResult<uint64>>
Parameters
- key
- Type: System.String
Return Value
Type:
Task<IOperationResult<UInt64>>The
Task<TResult> object representing the asynchronous operation.
Return Value
Type:
Task<IOperationResult<UInt64>>Implements
IBucket.IncrementAsync(String)
See Also