def score_and_rank_for_in(self, leaderboard_name, member):
pipeline = self.redis_connection.pipeline()<EOL>pipeline.zscore(leaderboard_name, member)<EOL>if self.order == self.ASC:<EOL><INDENT>pipeline.zrank(leaderboard_name, member)<EOL><DEDENT>else:<EOL><INDENT>pipeline.zrevrank(leaderboard_name, member)<EOL><DEDENT>responses = pipeline.execute()<EOL>if responses[<NUM_LIT:0>] is not None:<EOL><INDENT>responses[<NUM_LIT:0>] = float(responses[<NUM_LIT:0>])<EOL><DEDENT>if self.order == self.ASC:<EOL><INDENT>try:<EOL><INDENT>responses[<NUM_LIT:1>] = self.redis_connection.zcount(<EOL>leaderboard_name, '<STR_LIT>', "<STR_LIT>" % str(float(responses[<NUM_LIT:0>]))) + <NUM_LIT:1><EOL><DEDENT>except:<EOL><INDENT>responses[<NUM_LIT:1>] = None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>responses[<NUM_LIT:1>] = self.redis_connection.zcount(<EOL>leaderboard_name, "<STR_LIT>" % str(float(responses[<NUM_LIT:0>])), '<STR_LIT>') + <NUM_LIT:1><EOL><DEDENT>except:<EOL><INDENT>responses[<NUM_LIT:1>] = None<EOL><DEDENT><DEDENT>return {<EOL>self.MEMBER_KEY: member,<EOL>self.SCORE_KEY: responses[<NUM_LIT:0>],<EOL>self.RANK_KEY: responses[<NUM_LIT:1>]<EOL>}<EOL>
Retrieve the score and rank for a member in the named leaderboard.

@param leaderboard_name [String]Name of the leaderboard.
@param member [String] Member name.
@return the score and rank for a member in the named leaderboard as a Hash.