Click or drag to resize
IRiakBatchClientIncrementCounter Method
Increments a Riak counter.

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
RiakCounterResult IncrementCounter(
	string bucket,
	string counter,
	long amount,
	RiakCounterUpdateOptions options = null
)

Parameters

bucket
Type: SystemString
The bucket.
counter
Type: SystemString
The name of the counter.
amount
Type: SystemInt64
The amount to increment/decrement the counter.
options (Optional)
Type: RiakClient.ModelsRiakCounterUpdateOptions
The RiakCounterUpdateOptions.

Return Value

Type: RiakCounterResult
RiakCounterResult
Remarks
Only available in Riak 1.4+. If the counter is not initialized, then the counter will be initialized to 0 and then incremented.
See Also