ZRANK key member

    Time complexity: O(log(N))

    Returns the rank of in the sorted set stored at key, with the scores ordered from low to high. The rank (or index) is 0-based, which means that the member with the lowest score has rank .

    *Examples

    redis> ZADD myzset 1 "one"

    redis> ZADD myzset 2 "two"

    redis> ZRANK myzset "three"

    redis> ZRANK myzset "four"

    redis>