PSETEX works exactly like SETEX with the sole difference that the expire time is specified in milliseconds instead of seconds.
例子
redis>
PSETEX mykey 1000 "Hello"
OKredis> PTTL mykey
(integer) 999redis> GET mykey
"Hello"