MemcachedBucket.Increment Method (String)Couchbase .NET SDK 2.0
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: Couchbase
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public IOperationResult<ulong> Increment(
	string key
)

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