EXPIRETIME key
@keyspace,
@read,
@fast,
Returns the absolute Unix timestamp (since January 1, 1970) in seconds at which the given key will expire.
See also the PEXPIRETIME command which returns the same information with milliseconds resolution.
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard ✅ Active-Active |
✅ Standard ✅ Active-Active |
One of the following:
-1 if the key exists but has no associated expiration time.-2 if the key does not exist.