Redis PEXPIRETIME Command Explained

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

This works exactly the same as EXPIRETIME, but it returns the Unix timestamp in milliseconds instead of seconds.

The PEXPIRETIME command was introduced in Redis 7.0.0.

Continue reading