Redis.zremrangeByRank

Remove all elements in the sorted set at key with rank between start and end. Start and end are 0-based with rank 0 being the element with the lowest score. Both start and end can be negative numbers, where they indicate offsets starting at the element with the highest rank. For

  1. Long zremrangeByRank(string key, long start, long stop)
    class Redis
    Long
    zremrangeByRank
    (
    string key
    ,
    long start
    ,
    long stop
    )
  2. alias zremrangeByRank = BinaryRedis.zremrangeByRank

Examples

-1 is the element with the highest score, -2 the element with the second highest score and so forth. <p> <b>Time complexity:</b> O(log(N))+O(M) with N being the number of elements in the sorted set and M the number of elements removed by the operation @param key @param start @param stop @return

Meta