Returns the score of one or more members in a sorted set.
ZMSCORE
key member
[member…]
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.
One of the following:
Nil reply: if the member does not exist in the sorted set.
Array reply: a list of Bulk string reply member scores as double-precision floating point numbers.
One of the following:
Null reply: if the member does not exist in the sorted set.
Array reply: a list of Double reply member scores as double-precision floating point numbers.
O(N) where N is the number of members being requested.
@fast @read @sortedset
127.0.0.1:6379> ZADD myzset 1 "one"
(integer) 1
127.0.0.1:6379> ZADD myzset 2 "two"
(integer) 1
127.0.0.1:6379> ZMSCORE myzset "one" "two" "nofield"
1) "1"
2) "2"
3) (nil)
BZMPOP, BZPOPMAX, BZPOPMIN, ZADD, ZCARD, ZCOUNT, ZDIFF, ZDIFFSTORE, ZINCRBY, ZINTER, ZINTERCARD, ZINTERSTORE, ZLEXCOUNT, ZMPOP, ZPOPMAX, ZPOPMIN, ZRANDMEMBER, ZRANGE, ZRANGESTORE, ZRANK, ZREM, ZREMRANGEBYLEX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, ZREVRANK, ZSCAN, ZSCORE, ZUNION, ZUNIONSTORE.