Home / node / Commands / enumerations / ExpireOptions @valkey/valkey-glide
@valkey/valkey-glide / Commands / ExpireOptions
Enumeration: ExpireOptions
Enumeration Members
HasExistingExpiry
HasExistingExpiry:
"XX"
HasExistingExpiry
- Sets expiry only when the key has an existing expiry.
HasNoExpiry
HasNoExpiry:
"NX"
HasNoExpiry
- Sets expiry only when the key has no expiry.
NewExpiryGreaterThanCurrent
NewExpiryGreaterThanCurrent:
"GT"
NewExpiryGreaterThanCurrent
- Sets expiry only when the new expiry is
greater than current one.
NewExpiryLessThanCurrent
NewExpiryLessThanCurrent:
"LT"
NewExpiryLessThanCurrent
- Sets expiry only when the new expiry is less
than current one.