Rdocumentation
powered by
Learn R Programming
rredis (version 1.7.0)
redisZRank: redisZRank
Description
Return the rank of an element of an ordered set.
Usage
redisZRank(key, member, decreasing = FALSE)
Arguments
key
The set name.
member
The set element.
decreasing
Set to TRUE to rank in reverse order of score.
Value
The numeric rank of the set element.
Details
Returns the rank of the member in the sorted set, with scores ordered from low to high by default, or from high to low if decreasing = TRUE. The returned rank (or index) of the member is 0-based.
References
http://redis.io/commands