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

DOC-4528 async hash examples #3069

Merged
merged 5 commits into from
Dec 6, 2024

Conversation

andy-stark-redis
Copy link
Contributor

@andy-stark-redis andy-stark-redis commented Dec 3, 2024

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.

My first attempt at a Lettuce async code example for the hash datatype page. Although it passes the CI, I expect it's not ideal in terms of good practice. In particular:

  • Is it OK to run the del() call at the start from the CompletableFuture.allOf() call?
  • Where an example snippet depends on the results of the previous snippet, I've taken the variable from the previous snippet and continued from it (eg, CompletableFuture<Void> hmGet = setGetAll.thenCompose(... Is this the best way to handle this?

Any other feedback about style, technique, and general Java knowledge would be very welcome :-)

@andy-stark-redis andy-stark-redis marked this pull request as ready for review December 3, 2024 11:07
Copy link
Collaborator

@tishun tishun left a comment

Choose a reason for hiding this comment

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

LGTM

@tishun tishun merged commit f9d4509 into redis:main Dec 6, 2024
4 checks passed
Copy link
Contributor

@ggivo ggivo left a comment

Choose a reason for hiding this comment

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

LGTM

thachlp pushed a commit to thachlp/lettuce that referenced this pull request Dec 31, 2024
* DOC-4528 first two examples

* DOC-4528 added final example

* DOC-4528 formatting changes

* DOC-4528 removed unused imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants