A leaderboard looks like a one-command problem:

ZADD weekly 100 alice

ZADD weekly 100 bob

ZREVRANGE weekly 0 -1 WITHSCORES

Enter fullscreen mode