redisZRank: redisZRank

Description Usage Arguments Details Value Author(s) References

View source: R/zsetVal.R

Description

Return the rank of an element of an ordered set.

Usage

1
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 documentation built on May 2, 2019, 2:02 p.m.