PSETEX key milliseconds value
Available since 2.6.0.
Time complexity: O(1)
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) 999
redis> GET mykey
- "Hello"