Optional EXOptional EXATUse expiration { type: 'EXAT', value: number } instead
Optional GETOptional KEEPTTLUse expiration 'KEEPTTL' instead
Optional NXUse { condition: 'NX' } instead.
Optional PXUse expiration { type: 'PX', value: number } instead
Optional PXATUse expiration { type: 'PXAT', value: number } instead
Optional XXUse { condition: 'XX' } instead.
Optional Experimental conditionCondition for setting the key:
NX - Set if key does not exist
XX - Set if key already exists
IFEQ - Set if current value equals match-value (since 8.4, requires matchValue)
IFNE - Set if current value does not equal match-value (since 8.4, requires matchValue)
IFDEQ - Set if current value digest equals match-digest (since 8.4, requires matchValue)
IFDNE - Set if current value digest does not equal match-digest (since 8.4, requires matchValue)
Optional expirationOptional matchValue or digest to compare against. Required when using IFEQ, IFNE, IFDEQ, or IFDNE conditions.
Generated using TypeDoc
Deprecated
Use
expiration{ type: 'EX', value: number } instead