def rank_for_in(self, leaderboard_name, member):
member_score = self.score_for_in(leaderboard_name, member)<EOL>if self.order == self.ASC:<EOL><INDENT>try:<EOL><INDENT>return self.redis_connection.zrank(<EOL>self._ties_leaderboard_key(leaderboard_name), str(float(member_score))) + <NUM_LIT:1><EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>return self.redis_connection.zrevrank(<EOL>self._ties_leaderboard_key(leaderboard_name), str(float(member_score))) + <NUM_LIT:1><EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>
Retrieve the rank for a member in the named leaderboard.

@param leaderboard_name [String] Name of the leaderboard.
@param member [String] Member name.
@return the rank for a member in the leaderboard.