EXPIRETIME
Since 1.1.0Keys
Syntax
EXPIRETIME keyReturns the Unix time, in seconds, at which key expires.
Reply
- The time.
-1if the key has no expiry.-2if the key does not exist.
Examples
> SET a 1
OK
> EXPIREAT a 4102444800
(integer) 1
> EXPIRETIME a
(integer) 4102444800