Skip to content

Home / node / Commands / enumerations / HashFieldConditionalChange @valkey/valkey-glide


@valkey/valkey-glide / Commands / HashFieldConditionalChange

Enumeration: HashFieldConditionalChange

Field conditional change options for hash field expiration commands. Used with HSETEX command to control field setting behavior.

Enumeration Members

ONLY_IF_ALL_EXIST

ONLY_IF_ALL_EXIST: "FXX"

Only set fields if all of them already exist. Equivalent to FXX in the Valkey API.


ONLY_IF_NONE_EXIST

ONLY_IF_NONE_EXIST: "FNX"

Only set fields if none of them already exist. Equivalent to FNX in the Valkey API.