Introduction
ZRANK and ZREVRANK help you find the position of an item in a sorted list, so you know where it stands compared to others.
ZRANK key member ZREVRANK key member
ZRANK leaderboard player1
ZREVRANK leaderboard player1
ZRANK scores item42
ZADD leaderboard 100 player1 200 player2 150 player3 ZRANK leaderboard player3 ZREVRANK leaderboard player3
ZRANK return when used on a sorted set?ZRANK players bob?ZREVRANK leaderboard "playerX" but get a null reply. What is the most likely reason?Pass the test and this pattern moves unknown