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

Cache the item emitted by a Uni instead of the Uni itself #16607

Closed
gwenneg opened this issue Apr 18, 2021 · 0 comments · Fixed by #16608
Closed

Cache the item emitted by a Uni instead of the Uni itself #16607

gwenneg opened this issue Apr 18, 2021 · 0 comments · Fixed by #16608
Assignees
Labels
area/cache kind/enhancement New feature or request
Milestone

Comments

@gwenneg
Copy link
Member

gwenneg commented Apr 18, 2021

As discussed on Zulip, when a method that returns a Uni is annotated with @CacheResult, the Uni is cached which is not very helpful because it is executed on each method call. We should cache the item emitted by the Uni instead of the Uni itself.

@gwenneg gwenneg added the kind/enhancement New feature or request label Apr 18, 2021
@gwenneg gwenneg self-assigned this Apr 18, 2021
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cache kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant