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

Implement ZAdd and Zscore #79

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Implement ZAdd and Zscore #79

merged 1 commit into from
Dec 17, 2021

Conversation

the123saurav
Copy link
Contributor

Implement a Sorted Set data structure and couple of basic commands, namely ZAdd and ZScore

@the123saurav the123saurav linked an issue Dec 16, 2021 that may be closed by this pull request
@tuhuynh27 tuhuynh27 self-assigned this Dec 16, 2021
@tuhuynh27 tuhuynh27 added the enhancement New feature or request label Dec 16, 2021
@tuhuynh27 tuhuynh27 added this to the First Release milestone Dec 16, 2021
val result = jedis.zscore("zset", "foo");
assertNull(result);
} finally {
jedis.del("zset");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @the123saurav, we might don't need this finally block because we already reset the database after every @Test method

Ref: https://github.com/keva-dev/keva/blob/master/core/src/test/java/dev/keva/core/server/KevaServerTest.java#L54-L57

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh missed it completely, will remove.

@tuhuynh27 tuhuynh27 changed the base branch from master to develop December 16, 2021 20:53
@tuhuynh27
Copy link
Member

Great work @the123saurav 🎉 , also we need to update docs for command on the website too, for example https://github.com/keva-dev/keva/pull/55/files#diff-f0a6bf8edd363560735f8cabf8ad1b8f62d6d171c968ad63d60497d2ef1fbb56

@the123saurav
Copy link
Contributor Author

Incorporated changes!

Copy link
Member

@tuhuynh27 tuhuynh27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@the123saurav the123saurav merged commit 44cb670 into develop Dec 17, 2021
@tuhuynh27 tuhuynh27 deleted the zadd-copy branch December 19, 2021 09:19
@tuhuynh27 tuhuynh27 mentioned this pull request Dec 19, 2021
tuhuynh27 pushed a commit that referenced this pull request Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement SortedSet
2 participants