EXPIRETIME
Since 1.1.0KeysChanged in 1.2.1
Syntax
EXPIRETIME keyHistory
- 1.2.1: acl categories: removed generic
Returns the Unix time, in seconds, at which key expires, rounded to the nearest second, as in Redis; before 1.2.1 it was rounded down. For the latest deadline a key can have, it is 9223372036854776.
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