修改本页
Redis

PEXPIRE key milliseconds

This command works exactly like EXPIRE but the time to live of the key is specified in milliseconds instead of seconds.

Integer reply, specifically:

例子

redis>  SET mykey "Hello"
OK
redis>  PEXPIRE mykey 1500
(integer) 1
redis>  TTL mykey
(integer) 1
redis>  PTTL mykey
(integer) 1499
redis> 
Comments powered by Disqus