I have redis-cli 6.2.6 and Redis server v=6.2.6 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=557672d61c1e18ba
When i try to make LPOP X 1 i get (error) ERR wrong number of arguments for 'lpop' command
Comment From: sundb
You can use info server to see the redis version you connect, I guess you are not starting 6.x version.
Comment From: SupchickCode
You are right i connected to
Server
redis_version:5.0.7
Comment From: SupchickCode
thx u a lot
Comment From: yurenchen000
https://redis.io/docs/latest/commands/lpop/
Available since: 1.0.0 History: Starting with Redis version 6.2.0: Added the count argument.
docs maybe more readable if mentioned in available since or syntax section (current in history section)
Comment From: ShooterIT
Hi @yurenchen000 good catch, and do you want to make a PR to fix it