Trying to configure a write policy with LIST_WRITE_ADD_UNIQUE to ensure only unique values get added to a bin list, but can’t seem to figure out the correct syntax.
Have tried adding to a policy:
policy = {
'map_order': aerospike.MAP_KEY_VALUE_ORDERED,
'map_write_flags': aerospike.MAP_WRITE_FLAGS_CREATE_ONLY,
# neither of these add unique flags are working
'list_write_flags': aerospike.LIST_WRITE_ADD_UNIQUE,
'write_flags': aerospike.LIST_WRITE_ADD_UNIQUE
}
Just to be clear, the list_order policy only applies to a newly created list. Once it is created, you can only change its ordering using the set_order operation.