redis.zadd("key", 
    { score: 1, member: "one"}, 
    { score: 2, member: "two" },
)
elements = redis.zcount("key", 1, "+inf")
print(elements); # 1

Arguments

key
str
required

The key to get.

min
int | str
required

The minimum score to filter by.

Use -inf to effectively ignore this filter.

Use (number to include the value.`

max
int | str
required

The maximum score to filter by.

Use +inf to effectively ignore this filter.

Use number) to include the value.`

Response

The number of elements where score is between min and max.