Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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.

Value

The numeric rank of the set element.

Author(s)

B. W. Lewis

References

http://redis.io/commands


rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.