PEXPIRETIME

Syntax
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

redis> SET mykey "Hello"
"OK"
redis> PEXPIREAT mykey 33177117420000
(integer) 1
redis> PEXPIRETIME mykey
(integer) 33177117420000
redis>

RESP2/RESP3 Reply

One of the following:


RATE THIS PAGE
Back to top ↑