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

Adding command LMove #319

Merged
merged 6 commits into from
May 29, 2024
Merged

Adding command LMove #319

merged 6 commits into from
May 29, 2024

Conversation

tjzhang-BQ
Copy link

@tjzhang-BQ tjzhang-BQ commented May 29, 2024

Add command LMove

@tjzhang-BQ tjzhang-BQ changed the title Adding command LMove Adding command LMove May 29, 2024
* @param destination The key to the destination list.
* @param wherefrom The direction the element should be removed from.
* @param whereto The direction the element should be added to.
* @return The popped element or null.

Choose a reason for hiding this comment

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

Suggested change
* @return The popped element or null.
* @return The popped element or <code>null</code>.

Choose a reason for hiding this comment

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

... or null

in which case?

Copy link
Author

Choose a reason for hiding this comment

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

when source doesnt exist it returns null, should that be included in the javadoc?

If source does not exist, the value nil is returned and no operation is performed.
https://redis.io/docs/latest/commands/lmove/

Choose a reason for hiding this comment

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

Yes please

Copy link
Author

Choose a reason for hiding this comment

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

done in commit c618bad

@tjzhang-BQ tjzhang-BQ merged commit 32c8c01 into java/integ_tjz_lmove May 29, 2024
44 checks passed
@tjzhang-BQ tjzhang-BQ deleted the java/dev_tjz_lmove branch May 29, 2024 18:16
tjzhang-BQ added a commit that referenced this pull request May 29, 2024
* Adding command LMove

---------

Co-authored-by: TJ Zhang <tj.zhang@improving.com>
tjzhang-BQ added a commit that referenced this pull request May 29, 2024
* Adding command `LMove` (#319)

* Adding command LMove

---------

Co-authored-by: TJ Zhang <tj.zhang@improving.com>

* addressing review comments

* undo renaming of the lmpop arguments

* spotless

---------

Co-authored-by: TJ Zhang <tj.zhang@improving.com>
cyip10 pushed a commit that referenced this pull request Jun 24, 2024
* Adding command `LMove` (#319)

* Adding command LMove

---------

Co-authored-by: TJ Zhang <tj.zhang@improving.com>

* addressing review comments

* undo renaming of the lmpop arguments

* spotless

---------

Co-authored-by: TJ Zhang <tj.zhang@improving.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants