คำสั่ง Redis Zrangebylex
Redis สั่งตั้ง (ชุดเรียงลำดับ)
Redis Zrangebylex กลับมาสั่งตั้งโดยสมาชิกของส่วนพจนานุกรม
ไวยากรณ์
Redis Zrange ไวยากรณ์คำสั่งพื้นฐานจะเป็นดังนี้:
redis 127.0.0.1:6379> ZRANGEBYLEX key min max [LIMIT offset count]
รุ่นที่มีจำหน่าย
> = 2.8.9
ราคาย้อนกลับ
รายการขององค์ประกอบภายในช่วงที่ระบุ
ตัวอย่าง
redis 127.0.0.1:6379> ZADD myzset 0 a 0 b 0 c 0 d 0 e 0 f 0 g (integer) 7 redis 127.0.0.1:6379> ZRANGEBYLEX myzset - [c 1) "a" 2) "b" 3) "c" redis 127.0.0.1:6379> ZRANGEBYLEX myzset - (c 1) "a" 2) "b" redis 127.0.0.1:6379> ZRANGEBYLEX myzset [aaa (g 1) "b" 2) "c" 3) "d" 4) "e" 5) "f" redis>