RiakClientDtUpdateCounter Method (String, String, String, Int64, RiakDtUpdateOptions) |
Note: This API is now obsolete.
Update a Counter Data Type object at the provided address.
Namespace:
RiakClient
Assembly:
RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax [ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")]
public RiakCounterResult DtUpdateCounter(
string bucketType,
string bucket,
string key,
long amount,
RiakDtUpdateOptions options = null
)
[<ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")>]
abstract DtUpdateCounter :
bucketType : string *
bucket : string *
key : string *
amount : int64 *
?options : RiakDtUpdateOptions
(* Defaults:
let _options = defaultArg options null
*)
-> RiakCounterResult
[<ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")>]
override DtUpdateCounter :
bucketType : string *
bucket : string *
key : string *
amount : int64 *
?options : RiakDtUpdateOptions
(* Defaults:
let _options = defaultArg options null
*)
-> RiakCounterResult
Parameters
- bucketType
- Type: SystemString
The name of the bucket type containing the bucket. - bucket
- Type: SystemString
The name of the bucket containing the key. - key
- Type: SystemString
The key of the data type object. - amount
- Type: SystemInt64
The delta to apply to the counter. To add 1 to the counter, use "1". To subtract 5, use "-5". - options (Optional)
- Type: RiakClient.ModelsRiakDtUpdateOptions
The RiakDtUpdateOptions responsible for configuring the semantics of this data type update request.
Return Value
Type:
RiakCounterResultA
RiakCounterResult detailing the operation result and current counter value.
Implements
IRiakBatchClientDtUpdateCounter(String, String, String, Int64, RiakDtUpdateOptions)See Also