PEXPIRE key milliseconds
Time complexity: O(1)
This command works exactly like
EXPIRE but the time to live of the key is
specified in milliseconds instead of seconds.
Integer reply, specifically:
1if the timeout was set.
0if the timeout was not set. e.g. key doesn't exist, or operation skipped due to the provided arguments.
dragonfly> SET mykey "Hello"
dragonfly> PEXPIRE mykey 1500
dragonfly> TTL mykey
dragonfly> PTTL mykey