def remove_members_outside_rank_in(self, leaderboard_name, rank):
if self.order == self.DESC:<EOL><INDENT>rank = -(rank) - <NUM_LIT:1><EOL>return self.redis_connection.zremrangebyrank(<EOL>leaderboard_name, <NUM_LIT:0>, rank)<EOL><DEDENT>else:<EOL><INDENT>return self.redis_connection.zremrangebyrank(<EOL>leaderboard_name, rank, -<NUM_LIT:1>)<EOL><DEDENT>
Remove members from the named leaderboard in a given rank range.

@param leaderboard_name [String] Name of the leaderboard.
@param rank [int] the rank (inclusive) which we should keep.
@return the total member count which was removed.