PEXPIREAT

Sets a key's expiry to an absolute Unix timestamp in milliseconds.

Keys & expiration · Example verified

Syntax covered here

PEXPIREAT key unix-milliseconds

The cases check the corresponding timestamp and use this expiry when verifying that LAVIK.HREPLACE preserves it.

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
> PEXPIREAT sample 4102444800000
1
# connection: default
> EXPIRETIME sample
4102444800