await redis.zadd("key", { score: 1, member: "one"}, { score: 2, member: "two" }, ); const elements = await redis.zcount("key", 1, "+inf"); console.log(elements); // 1
Returns the number of elements in the sorted set stored at key filterd by score.
-inf
(number
+inf
number)
Was this page helpful?