Increments the value of a key by one. 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
)
public IOperationResult<ulong> Increment(
string key
)
Public Function Increment (
key As String
) As IOperationResult(Of ULong)
Public Function Increment (
key As String
) As IOperationResult(Of ULong)
public:
virtual IOperationResult<unsigned long long>^ Increment(
String^ key
) sealed
public:
virtual IOperationResult<unsigned long long>^ Increment(
String^ key
) sealed
abstract Increment :
key : string -> IOperationResult<uint64>
override Increment :
key : string -> IOperationResult<uint64>
abstract Increment :
key : string -> IOperationResult<uint64>
override Increment :
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 incremented value will be returned.
Implements
IBucket.Increment(String)
See Also