RecordExistsAction Enumeration

How to handle writes when the record already exists.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public enum RecordExistsAction

Members

UPDATE0 Create or update record. Merge write command bins with existing bins.
UPDATE_ONLY1 Update record only. Fail if record does not exist. Merge write command bins with existing bins.
REPLACE2 Create or update record. Delete existing bins not referenced by write command bins. Supported by Aerospike server versions >= 3.1.6.
REPLACE_ONLY3 Update record only. Fail if record does not exist. Delete existing bins not referenced by write command bins. Supported by Aerospike server versions >= 3.1.6.
CREATE_ONLY4 Create only. Fail if record exists.

See Also