Decrements the value of a key by one. If the key doesn't exist, it will be created
and seeded with 1.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic IOperationResult<ulong> Decrement(
string key
)
public IOperationResult<ulong> Decrement(
string key
)
Public Function Decrement (
key As String
) As IOperationResult(Of ULong)
Public Function Decrement (
key As String
) As IOperationResult(Of ULong)
public:
virtual IOperationResult<unsigned long long>^ Decrement(
String^ key
) sealed
public:
virtual IOperationResult<unsigned long long>^ Decrement(
String^ key
) sealed
abstract Decrement :
key : string -> IOperationResult<uint64>
override Decrement :
key : string -> IOperationResult<uint64>
abstract Decrement :
key : string -> IOperationResult<uint64>
override Decrement :
key : string -> IOperationResult<uint64>
Parameters
- key
- Type: System.String
The key to us for the counter.
Return Value
Type:
IOperationResult<UInt64>If the key doesn't exist, the server will respond with the initial value. If not the decremented value will be returned.
Implements
IBucket.Decrement(String)
See Also