PEXPIRETIME
Reports a key's absolute expiry timestamp in milliseconds.
Keys & expiration · Example verified
Syntax covered here
PEXPIRETIME keyThe cases verify persistent and missing-key sentinels and confirm an exact expiry survives LAVIK.HREPLACE.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET sample value
"OK"
# connection: default
> PEXPIRETIME sample
-1
# connection: default
> PEXPIRETIME missing
-2