redis.zadd("myset", {"a": 1, "b": 2, "c": 3})

assert redis.zlexcount("myset", "-", "+") == 3

Arguments

key
str
required
The key to get.
min
str
required
The lower lexicographical bound to filter by.Use - to disable the lower bound.
max
str
required
The upper lexicographical bound to filter by.Use + to disable the upper bound.

Response

The number of matched.
redis.zadd("myset", {"a": 1, "b": 2, "c": 3})

assert redis.zlexcount("myset", "-", "+") == 3