EXPIRETIME
Syntax
Section titled “Syntax”EXPIRETIME key
EXPIRETIME returns the absolute timestamp in Unix seconds at which the given key will expire.
The command returns -1 if the key exists but has no associated expiration time. The command returns -2 if the key does not exist.
Examples
Section titled “Examples”localhost:7379> SET k1 v1OKlocalhost:7379> EXPIRE k1 10OK truelocalhost:7379> EXPIRETIME k1OK 1744451192