The Redis EXPIRETIME
command returns the absolute Unix timestamp in seconds at which the given key will expire. This is the number of seconds since 00:00:00 UTC on 1 January 1970 until the expiry time of the key.
The EXPIRETIME
command was introduced in Redis 7.0.0.