EXPIREAT
Since 1.1.0Keys
Syntax
EXPIREAT key unix-time-seconds [NX | XX | GT | LT]Makes key expire at a Unix time, in seconds. A time in the past deletes the key at once. It takes the same NX, XX, GT and LT conditions as EXPIRE.
Reply
1if the expiry was set;0if the key does not exist or the condition was not met.
Examples
> SET a 1
OK
> EXPIREAT a 4102444800
(integer) 1
> EXPIRETIME a
(integer) 4102444800
> SET gone 1
OK
> EXPIREAT gone 1
(integer) 1
> EXISTS gone
(integer) 0