Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash-vector.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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.
redis.zadd("key", 
    { score: 1, member: "one"}, 
    { score: 2, member: "two" },
)
elements = redis.zcount("key", 1, "+inf")
print(elements); # 1