ZMSCORE

Syntax

1. ZMSCORE key member [member ...]

Time complexity: O(N) where N is the number of members being requested.

ACL categories: @read, @sortedset, @fast

Returns the scores associated with the specified members in the sorted set stored at key.

For every member that does not exist in the sorted set, a nil value is returned.

Return

Array reply: list of scores or nil associated with the specified member values (a double precision floating point number), represented as strings.

Examples

1. dragonfly> ZADD myzset 1 "one"
2. (integer) 1
3. dragonfly> ZADD myzset 2 "two"
4. (integer) 1
5. dragonfly> ZMSCORE myzset "one" "two" "nofield"
6. 1) "1"
7. 2) "2"
8. 3) (nil)