New extension: Sorted Sets (Redis)

The next extension for the Redis challenge is now live: Sorted Sets.

A Redis sorted set is a collection of unique strings ordered by score, useful for tasks like leaderboards or rate limiting.

By the end of this extension, your Redis implementation will support:

  • Creating sorted sets and adding members with ZADD
  • Retrieving a member’s rank with ZRANK
  • Listing members with ZRANGE
  • Counting members with ZCARD
  • Retrieving a member’s score with ZSCORE
  • Removing members with ZREM

Here’s the stage breakdown:

Please give this a try and let us know how it can be improved! @UdeshyaDhungana (author of this extension) and I will be available here to help out with any tester or instruction-related issues.

1 Like

It was a quick one but I liked it.

3 Likes