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

Add support for sorted sets, lrange and transactions #43

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

felipecsl
Copy link

@felipecsl felipecsl commented Apr 6, 2018

Fixes #20

This adds support for:

  • zadd
  • zrange
  • zrevrange
  • zrangeWithScores
  • zrangeByScore
  • zrangeByScoreWithScores
  • zrevrangeByScoreWithScores
  • zrevrangeByScore
  • lrange
  • zrank
  • zremrangeByRank
  • zremrangeByScore
  • zcard
  • zscore
  • multi, exec, discard

If you don't mind, I've converted the files from tab to 2-space indentation and removed final from parameters and local variables to clean up the code. If you feel strongly, I can add those back, but I deem them unnecessary :)

Also a couple other housekeeping Gradle improvements, added unit tests.

If you add ?w=1 to the PR url, it's gonna ignore whitespace-only changes. (easier to review)

It's worth mentioning that the time complexity is not quite the same as the Redis default implementation (O(log(N)+M) versus O(N) in this implementation), but I guess that's fine for a test-only library

@felipecsl felipecsl changed the title Add basic support for sorted sets Add support for sorted sets Jun 6, 2018
@felipecsl felipecsl changed the title Add support for sorted sets Add support for sorted sets, lrange and multi Jun 8, 2018
@felipecsl felipecsl changed the title Add support for sorted sets, lrange and multi Add support for sorted sets, lrange and transactions Jun 11, 2018
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.

1 participant