Redix LogoDocumentation
API ReferenceSorted Sets

ZScore

Get the score of a member in a sorted set

Syntax

Redix.ZScore(key, member, callback)

Parameters

Prop

Type

Returns

Prop

Type

Example

Redix.ZScore('leaderboard:kills', 'PlayerA', function(err, score)
    if not err and score then
        print('PlayerA kills:', score)
    else
        print('Player not in leaderboard')
    end
end)