ZMSCORE

Retrieves scores for several sorted-set members.

Sorted sets · Example verified

Syntax covered here

ZMSCORE key member [member ...]

Scores preserve request order, and an absent member leaves a null entry at its position.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> ZADD scores 1 a 2 b
2
# connection: default
> ZMSCORE scores a b missing
["1","2",null]