-
Notifications
You must be signed in to change notification settings - Fork 68
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
Java: Add Zdiffstore
command. (Sorted Set Group)
#1244
Java: Add Zdiffstore
command. (Sorted Set Group)
#1244
Conversation
java/client/src/main/java/glide/api/models/BaseTransaction.java
Outdated
Show resolved
Hide resolved
Zdiffstore
command. (Sorted Set Group)
3cb737b
to
9bfcf12
Compare
java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java
Outdated
Show resolved
Hide resolved
java/client/src/test/java/glide/api/models/TransactionTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit comments
java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java
Outdated
Show resolved
Hide resolved
* assert payload > 0; // At least one member differed in "key1" compared to "key2", and this difference was stored in "mySortedSet". | ||
* }</pre> | ||
*/ | ||
CompletableFuture<Long> zdiffstore(String destination, String[] keys); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to swap keys and destination? I think it's easier to understand. Redis uses this ordering because they have a varargs on the keys, but we don't need to restrict ourselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think so. We have stuck to the Redis ordering up to this point. Does not make sense to change it now.
0aaa283
to
c34e66c
Compare
Signed-off-by: Andrew Carbonetto <[email protected]>
* Java: Add Zdiffstore command. (Sorted Set Group) (#185) * Minor documentation + minor IT test update. * Changelog revert. * Rebase + Spotless * Minor documentation update + minor TransactionTests update + revert CHANGELOG.md * SPOTLESS Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
* Java: Add Zdiffstore command. (Sorted Set Group) (#185) * Minor documentation + minor IT test update. * Changelog revert. * Rebase + Spotless * Minor documentation update + minor TransactionTests update + revert CHANGELOG.md * SPOTLESS Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.