How to handle writes when the record already exists.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 3.0.0.0 (3.0.14)
Syntax
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 2 server versions >= 2.7.5 and Aerospike 3 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 2 server versions >= 2.7.5 and Aerospike 3 server versions >= 3.1.6. | |
CREATE_ONLY | 4 | Create only. Fail if record exists. |
See Also