-
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 RENAMENX
command.
#1332
Java: Add RENAMENX
command.
#1332
Conversation
Signed-off-by: Yury-Fridlyand <[email protected]>
java/client/src/main/java/glide/api/commands/GenericBaseCommands.java
Outdated
Show resolved
Hide resolved
@@ -1975,6 +1976,21 @@ public T type(@NonNull String key) { | |||
return getThis(); | |||
} | |||
|
|||
/** | |||
* Renames <code>key</code> to <code>newKey</code> if <code>newKey</code> does not yet exist. |
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.
I can't remember, is the api note about keys needing to map to the same hash slot not applicable here?
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.
We don't add to transaction, because
- transaction could be routed to one node only
- if route not given, GLIDE core picks a route for the transaction according to the keys used referenced in it
A user may still route a transaction to a wrong node intentionally, on it own responsibility.
Signed-off-by: Yury-Fridlyand <[email protected]>
…NAMENX Signed-off-by: Yury-Fridlyand <[email protected]>
…NAMENX Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
…NAMENX Signed-off-by: Yury-Fridlyand <[email protected]>
* Add `RENAMENX` command. (#247) Signed-off-by: Yury-Fridlyand <[email protected]> * PR comments. Signed-off-by: Yury-Fridlyand <[email protected]> * Update IT. Signed-off-by: Yury-Fridlyand <[email protected]> --------- Signed-off-by: Yury-Fridlyand <[email protected]>
Issue #, if available:
N/A
Description of changes:
https://redis.io/docs/latest/commands/renamenx/
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.