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

Skip caching Multi and log WARN message at build time #16706

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

gwenneg
Copy link
Member

@gwenneg gwenneg commented Apr 21, 2021

As discussed on Zulip, this PR prints a WARN message in the log at build time when @CacheResult is used on a method returning Multi.

I also updated CacheResultInterceptor to stop caching the Multi.

@gwenneg gwenneg requested a review from cescoffier April 21, 2021 23:19
@gwenneg gwenneg force-pushed the skip-caching-multi branch from e2a9ed8 to 11899a1 Compare April 22, 2021 07:15
Copy link
Member

@cescoffier cescoffier left a comment

Choose a reason for hiding this comment

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

Was the documentation updated after the Uni enhancement?
Anyway, I believe this would deserve a small WARNING in the documentation too.

@gwenneg
Copy link
Member Author

gwenneg commented Apr 25, 2021

You're right, the documentation needs an update. I'll take care of it.

@gsmet
Copy link
Member

gsmet commented May 7, 2021

@gwenneg ping!

@gwenneg gwenneg force-pushed the skip-caching-multi branch from 11899a1 to 0ad3f33 Compare June 13, 2021 16:12
@gwenneg gwenneg force-pushed the skip-caching-multi branch from 0ad3f33 to 902c082 Compare January 7, 2022 19:27
@gwenneg
Copy link
Member Author

gwenneg commented Jan 7, 2022

Can this PR be merged without the doc? As I mentioned in #22683, I'm working on a separate PR that will improve the quarkus-cache doc. The new version should cover all the important details about the integration with Mutiny, including this.

@gsmet
Copy link
Member

gsmet commented Jan 7, 2022

Yes, sure.

@gsmet gsmet dismissed cescoffier’s stale review January 7, 2022 22:50

Doc will be addressed in a separate PR.

@gsmet gsmet merged commit 08d1c67 into quarkusio:main Jan 7, 2022
@quarkus-bot quarkus-bot bot added this to the 2.7 - main milestone Jan 7, 2022
@gwenneg gwenneg deleted the skip-caching-multi branch January 7, 2022 23:43
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.

3 participants