Describe the bug
When run the command zlexcount,if MIN and MAX are set to ‘[-’ and '+',it returns all elements,but when set to '-' and '[+', it returns 0.
To reproduce
ZADD exist_key 0 a 0 b 0 c 0 d 0 e (integer) 5 zlexcount exist_key [- + (integer) 5 zlexcount exist_key - [+ (integer) 0
Expected behavior
ZADD exist_key 0 a 0 b 0 c 0 d 0 e (integer) 5 zlexcount exist_key [- + (integer) 5 zlexcount exist_key - [+ (integer) 5
Comment From: sundb
@xlmou It's not a bug.
[+ refers to the inclusion of the + character, not to the MAX.
The reason why zlexcount exist_key [- + works is that '-' < 'a'
Comment From: xlmou
@xlmou It's not a bug.
[+refers to the inclusion of the+character, not to the MAX. The reason whyzlexcount exist_key [- +works is that'-' < 'a'
Thank you, I got it.