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

Java: add RENAME command #1481

Merged
merged 5 commits into from
May 28, 2024

Conversation

cyip10
Copy link
Collaborator

@cyip10 cyip10 commented May 28, 2024

Issue #, if available:
N/A

Description of changes:
https://redis.io/docs/latest/commands/rename/

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@cyip10 cyip10 requested a review from a team as a code owner May 28, 2024 19:04
public void rename(BaseClient client) {
String key1 = "{key}" + UUID.randomUUID();

assertEquals("OK", client.set(key1, "foo").get());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
assertEquals("OK", client.set(key1, "foo").get());
assertEquals(OK, client.set(key1, "foo").get());

String key1 = "{key}" + UUID.randomUUID();

assertEquals("OK", client.set(key1, "foo").get());
assertEquals("OK", client.rename(key1, key1 + "_rename").get());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
assertEquals("OK", client.rename(key1, key1 + "_rename").get());
assertEquals(OK, client.rename(key1, key1 + "_rename").get());

@acarbonetto acarbonetto changed the title Java: RENAME upstream Java: add RENAME command May 28, 2024
@acarbonetto acarbonetto added the java issues and fixes related to the java client label May 28, 2024
Copy link
Collaborator

@jonathanl-bq jonathanl-bq left a comment

Choose a reason for hiding this comment

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

Make sure to address Andrew's comments

@acarbonetto acarbonetto merged commit 8901187 into valkey-io:main May 28, 2024
12 checks passed
@acarbonetto acarbonetto deleted the java/integ_cyip10_rename branch May 28, 2024 20:37
cyip10 added a commit to Bit-Quill/valkey-glide that referenced this pull request Jun 24, 2024
* implement rename command in new PR

* address comments

* address new comments

* address sharedCommandTest comments

---------

Co-authored-by: Chloe Yip <chloe.yip@Chloes-MacBook-Pro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants