Redis

PSETEX key milliseconds value

PSETEX works exactly like SETEX with the sole difference that the expire time is specified in milliseconds instead of seconds.

Examples

redis>  PSETEX mykey 1000 "Hello"
OK
redis>  PTTL mykey
(integer) 1000
redis>  GET mykey
"Hello"
redis> 
Comments powered by Disqus