Arguments
string
required
The key to get.
Response
The members of the sorted set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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]
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]
Was this page helpful?