The examples in the pexpire docs page have errors:

redis>  PEXPIRE mykey 1000 XX
ERR ERR wrong number of arguments for 'pexpire' command

Comment From: enjoy-binbin

We have a doc resp https://github.com/redis/redis-doc

Maybe you can try to fix it and submit a pr Or i will do it later

Comment From: benbro

https://github.com/redis/redis-doc/issues/1620