Decrements 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>> DecrementAsync(
string key
)
public Task<IOperationResult<ulong>> DecrementAsync(
string key
)
Public Function DecrementAsync (
key As String
) As Task(Of IOperationResult(Of ULong))
Public Function DecrementAsync (
key As String
) As Task(Of IOperationResult(Of ULong))
public:
virtual Task<IOperationResult<unsigned long long>^>^ DecrementAsync(
String^ key
) sealed
public:
virtual Task<IOperationResult<unsigned long long>^>^ DecrementAsync(
String^ key
) sealed
abstract DecrementAsync :
key : string -> Task<IOperationResult<uint64>>
override DecrementAsync :
key : string -> Task<IOperationResult<uint64>>
abstract DecrementAsync :
key : string -> Task<IOperationResult<uint64>>
override DecrementAsync :
key : string -> Task<IOperationResult<uint64>>
Parameters
- key
- Type: System.String
The key to us for the counter.
Return Value
Type:
Task<IOperationResult<UInt64>>The
Task<TResult> object representing the asynchronous operation.
Implements
IBucket.DecrementAsync(String)
RemarksIf the key doesn't exist, the server will respond with the initial value. If not the decremented value will be returned.
See Also