Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#104) Add Leaderboard Functionality #105

Closed
wants to merge 1 commit into from

Conversation

JyotinderSingh
Copy link
Collaborator

@JyotinderSingh JyotinderSingh commented Dec 13, 2022

Description

This PR adds Leaderboard functionality, similar to Redis Leaderboard Overview.

The leaderboard is implemented using a Sorted Set backed by a SkipList implementation.

Instead of storing the actual strings for keys, we store pointers to these keys. Similarly for the values, we only store pointers to the actual values stored in the store. This allows us to keep the data structure space efficient.

We also need to make sure that the KV pairs stored in the ZSet do not collide with the KV pairs in the general store.

  • Implement SkipList
  • Implement SkipList-backed Zset (SortedSet)
  • Add ZSet Tests
  • Add Benchmark
  • Add user-facing API with key/value refs

Issue

#104

How was the patch tested?

Added unit tests + existing tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants