Module Hub Beta


key elem [elem ...]

A variadic variant for ZSCORE, returns the scores of multiple members in a Sorted Set.

Return Value

Array reply: list of elements’ scores.


redis> ZADD myzset 1 “one”
(integer) 1
redis> ZADD myzset 2 “two”
(integer) 1
redis> ZADD myzset 3 “three”
(integer) 1
redis> MZSCORE myzset “one” “three”
1) (integer) 1
2) (integer) 3

© 2017 Redis Labs, Inc. All rights reserved.