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
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)
versusO(N)
in this implementation), but I guess that's fine for a test-only library