ZMSCORE

ZMSCORE key member [member ...]
Available since:
Redis Open Source 6.2.0
Time complexity:
O(N) where N is the number of members being requested.
ACL categories:
@read, @sortedset, @fast,
Compatibility:
Redis Software and Redis Cloud compatibility

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.

Required arguments

key

The name of the key that holds the sorted set.

member [member ...]

One or more members whose scores to return.

Examples

ZADD myzset 1 "one" ZADD myzset 2 "two" ZMSCORE myzset "one" "two" "nofield"

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

One of the following:

RATE THIS PAGE
Back to top ↑