Skip to main content

ZSCORE

Syntax

ZSCORE key member

Time complexity: O(1)

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.

Return

Bulk string reply: the score of member (a double precision floating point number), represented as string.

Examples

dragonfly> ZADD myzset 1 "one"
(integer) 1
dragonfly> ZSCORE myzset "one"
"1"