redis-io icon indicating copy to clipboard operation
redis-io copied to clipboard

ZMPOP Documentation Example is Faulty

Open Akaame opened this issue 3 years ago • 0 comments

Here is the documentation page: https://redis.io/commands/zmpop

And here is the excerpt from the example:

ERR Unknown or disabled command 'ZMPOP'
redis>  ZADD myzset 1 "one" 2 "two" 3 "three"
(integer) 3
redis>  ZMPOP 1 myzset MIN
ERR Unknown or disabled command 'ZMPOP'
redis>  ZRANGE myzset 0 -1 WITHSCORES
1) "one"
2) "1"
3) "two"
4) "2"
5) "three"
6) "3"
redis>  ZMPOP 1 myzset MAX COUNT 10
ERR Unknown or disabled command 'ZMPOP'
redis>  ZADD myzset2 4 "four" 5 "five" 6 "six"
(integer) 3
redis>  ZMPOP 2 myzset myzset2 MIN COUNT 10
ERR Unknown or disabled command 'ZMPOP'

As it can be clearly seen ZMPOP itself is not recognized as a command.

Akaame avatar Jan 31 '22 12:01 Akaame