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.
Array reply: list of scores or nil associated with the specified member values (a double precision floating point number), represented as strings.
(integer) 1 redis> ZADD myzset 2 "two" (integer) 1 redis> ZMSCORE myzset "one" "two" "nofield" 1) "1"
2) "2"
3) (nil)
© 2009–2020 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/zmscore