Returns the number of elements in the sorted set stored at key.
await redis.zadd("key", { score: 1, member: "one"}, { score: 2, member: "two" }, ); const elements = await redis.zrank("key"); console.log(elements); // 2
The key to get.
The number of elements in the sorted set.
Was this page helpful?