Home / node / Commands / enumerations / ConditionalChange @valkey/valkey-glide
@valkey/valkey-glide / Commands / ConditionalChange
Enumeration: ConditionalChange
An optional condition to the geoadd, zadd and set commands.
Enumeration Members
ONLY_IF_DOES_NOT_EXIST
ONLY_IF_DOES_NOT_EXIST:
"NX"
Only add new elements. Don't update already existing elements. Equivalent to NX
in the Valkey API.
ONLY_IF_EXISTS
ONLY_IF_EXISTS:
"XX"
Only update elements that already exist. Don't add new elements. Equivalent to XX
in the Valkey API.