Redis Zlexcount command
Redis ordered set (sorted set)
Redis Zlexcount command within a specified number of members in the calculation interval dictionary ordered set.
grammar
redis Zlexcount basic command syntax is as follows:
redis 127.0.0.1:6379> ZLEXCOUNT KEY MIN MAX
Available versions
> = 2.8.9
return value
Specifies the number of members within the interval.
Examples
redis 127.0.0.1:6379> ZADD myzset 0 a 0 b 0 c 0 d 0 e (integer) 5 redis 127.0.0.1:6379> ZADD myzset 0 f 0 g (integer) 2 redis 127.0.0.1:6379> ZLEXCOUNT myzset - + (integer) 7 redis 127.0.0.1:6379> ZLEXCOUNT myzset [b [f (integer) 5