ZLEXCOUNT
Note
Official reference: ZLEXCOUNT.
Count members within a lexicographical range.
Syntax
ZLEXCOUNT key min max
Members must have equal scores. [value is inclusive and (value exclusive; - and + mean unbounded lower and upper limits.
Results
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | RESULT field, LONG type |
Example
ZADD demo:letters 0 alice 0 bob
ZLEXCOUNT demo:letters [a [z