修改本页
Redis

PEXPIREAT key milliseconds-timestamp

PEXPIREAT has the same effect and semantic as EXPIREAT, but the Unix time at which the key will expire is specified in milliseconds instead of seconds.

返回值

Integer reply, specifically:

例子

redis>  SET mykey "Hello"
OK
redis>  PEXPIREAT mykey 1555555555005
(integer) 1
redis>  TTL mykey
(integer) 147565735
redis>  PTTL mykey
(integer) 147565735323
redis> 
Comments powered by Disqus