Introduction
ZRANGEBYLEX helps you get items from a sorted list based on alphabetical order, not numbers.
ZRANGEBYLEX key min max [LIMIT offset count]
ZRANGEBYLEX myset [apple [banana
ZRANGEBYLEX myset (apple (banana
ZRANGEBYLEX myset - +
ZRANGEBYLEX myset [cat [dog LIMIT 0 3
127.0.0.1:6379> ZADD fruits 0 apple 0 banana 0 cherry 0 date 0 fig 0 grape (integer) 6 127.0.0.1:6379> ZRANGEBYLEX fruits [banana [fig 1) "banana" 2) "cherry" 3) "date" 4) "fig"
ZRANGEBYLEX do?ZRANGEBYLEX is used to get members from a sorted set based on their alphabetical order, not their score.ZRANGEBYLEX?ZRANGEBYLEX, square brackets [ ] mean inclusive boundaries.ZRANGEBYLEX myzset [banana (date?ZRANGEBYLEX myzset [a [z LIMIT 0 2 but get an error. What is the likely cause?Pass the test and this pattern moves unknown