EXPIREAT
Sets a key's expiry to an absolute Unix timestamp in seconds.
Keys & expiration · Example verified
Syntax covered here
EXPIREAT key unix-secondsEXPIRETIME confirms the exact timestamp installed by the command.
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
> EXPIREAT sample 4102444800
1
# connection: default
> EXPIRETIME sample
4102444800