- Usage:
PSETEX key milliseconds value
- Complexity:
- O(1)
- Since:
- 2.6.0
PSETEX
works exactly like SETEX
with the sole difference that the expire
time is specified in milliseconds instead of seconds.
Examples
PSETEX mykey 1000 "Hello"
PTTL mykey
GET mykey