How to handle writes when the record already exists.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public enum RecordExistsAction
Members
Member name | Value | Description | |
---|---|---|---|
UPDATE | 0 | Create or update record. Merge write command bins with existing bins. | |
UPDATE_ONLY | 1 | Update record only. Fail if record does not exist. Merge write command bins with existing bins. | |
REPLACE | 2 | Create or update record. Delete existing bins not referenced by write command bins. Supported by Aerospike server versions >= 3.1.6. | |
REPLACE_ONLY | 3 | 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_ONLY | 4 | Create only. Fail if record exists. |
See Also