PEXPIRETIME

PEXPIRETIME

PEXPIRETIME key
Available since
7.0.0
Time complexity
O(1)
ACL categories
@keyspace, @read, @fast

PEXPIRETIME has the same semantic as EXPIRETIME, but returns the absolute Unix expiration timestamp in milliseconds instead of seconds.

Examples #

SET mykey "Hello"
PEXPIREAT mykey 33177117420000
PEXPIRETIME mykey

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.