Returns the scores of multiple members.
await redis.zadd("key", { score: 1, member: "m1" }, { score: 2, member: "m2" }, { score: 3, member: "m3" }, { score: 4, member: "m4" }, ) const scores = await redis.zmscore("key", ["m2", "m4"]) console.log(scores) // [2, 4]
The key to get.
The members of the sorted set.
Was this page helpful?