MapOperationDecrement Method

Aerospike

Note: This API is now obsolete.

Create map decrement operation. Server decrements values by decr for all items identified by key and returns final result. Valid only for numbers.

The required map policy dictates the type of map to create when it does not exist. The map policy also specifies the mode used when writing items to the map. See policy MapPolicy and write mode MapWriteMode.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
[ObsoleteAttribute("Decrement is deprecated. Use Increment with a negative value instead.")]
public static Operation Decrement(
	MapPolicy policy,
	string binName,
	Value key,
	Value decr,
	params CTX[] ctx
)

Parameters

policy
Type: Aerospike.ClientMapPolicy
binName
Type: SystemString
key
Type: Aerospike.ClientValue
decr
Type: Aerospike.ClientValue
ctx
Type: Aerospike.ClientCTX

Return Value

Type: Operation
See Also

Reference