If I have a sorted set with member/scores like this: * 1/1 * 2/2 * 3/3 * ... * 2450/2450
and call ZREVRANGEBYSCORE key +inf (2 LIMIT 0 -2, it gives me all members with scores higher than 2, instead of giving me an error about an unacceptable COUNT. The equivalent happens with ZRANGEBYSCORE, ZRANGEBYLEX, ZREVRANGEBYLEX as well.
(asked about originally https://www.reddit.com/r/redis/comments/5v7kob/zrevrangebyscore_negative_count_confusion/)
Comment From: yoav-steinberg
Closing this as negative count is documented to return all values: https://github.com/redis/redis-doc/commit/b71d216928746ccd2a02ca17558fedd2f2506553