ZSCORE

ZSCORE

ZSCORE key member
Available since
1.2.0
Time complexity
O(1)
ACL categories
@read, @sortedset, @fast

Returns the score of member in the sorted set at key.

If member does not exist in the sorted set, or key does not exist, nil is returned.

Examples #

ZADD myzset 1 "one"
ZSCORE myzset "one"

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.