ZMSCORE

Syntax
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.

Examples

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

Redis Software and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

One of the following:

RATE THIS PAGE
Back to top ↑