Redis.zrank

Return the rank (or index) of member in the sorted set at key, with scores being ordered from low to high. <p> When the given member does not exist in the sorted set, the special value 'nil' is returned. The returned rank (or index) of the member is 0-based for both commands. <p> <b>Time complexity:</b> <p> O(log(N)) @see #zrevrank(string, string) @param key @param member @return Integer reply or a nil bulk reply, specifically: the rank of the element as an integer reply if the element exists. A nil bulk reply if there is no such element.

  1. Long zrank(string key, string member)
    class Redis
    Long
    zrank
    (
    string key
    ,
    string member
    )
  2. alias zrank = BinaryRedis.zrank

Meta