-
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 RANDOMKEY #1576
Java: add RANDOMKEY #1576
Conversation
bbc2581
to
8ac8b21
Compare
@@ -112,4 +112,40 @@ public interface GenericClusterCommands { | |||
* }</pre> | |||
*/ | |||
CompletableFuture<Object[]> exec(ClusterTransaction transaction, SingleNodeRoute route); | |||
|
|||
/** | |||
* Returns a random key. <br> |
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.
Why don't we mentioned database in cluster mode?
* Returns a random key. <br> | |
* Returns a random key from the currently selected database. <br> |
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.
currently selected database is used for standalone (select command)
we can write about the routing that determents where are is the randomkey selected from
c926c2e
to
e2625bc
Compare
Signed-off-by: Andrew Carbonetto <[email protected]>
e2625bc
to
159db27
Compare
Signed-off-by: Andrew Carbonetto <[email protected]>
* RCT test * implement random val * work on SCT * implement randomkey no examples * current progress * implement randomKey * ran spotlessApply * addressed interface comment * progress on pause * address redis issue * add todo for redis rs issue * current progress address commentS * run into cluster error * ran into cluster error * address comments * address test comments * resolve merge conflicts * address cluster comment * Disable failing test until redis-rs fix in Signed-off-by: Andrew Carbonetto <[email protected]> * SPOTLESS Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]> Co-authored-by: Chloe Yip <[email protected]> Co-authored-by: Chloe Yip <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
* RCT test * implement random val * work on SCT * implement randomkey no examples * current progress * implement randomKey * ran spotlessApply * addressed interface comment * progress on pause * address redis issue * add todo for redis rs issue * current progress address commentS * run into cluster error * ran into cluster error * address comments * address test comments * resolve merge conflicts * address cluster comment * Disable failing test until redis-rs fix in Signed-off-by: Andrew Carbonetto <[email protected]> * SPOTLESS Signed-off-by: Andrew Carbonetto <[email protected]> --------- Signed-off-by: Andrew Carbonetto <[email protected]> Co-authored-by: Chloe Yip <[email protected]> Co-authored-by: Chloe Yip <[email protected]> Co-authored-by: Andrew Carbonetto <[email protected]>
Issue #, if available:
https://redis.io/docs/latest/commands/randomkey/
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.