Using Quarkus cache directly instead of CacheResult #1140
Unanswered
sandip-stats
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Please ask to Quarkus |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
This is with reference to 'https://quarkus.io/guides/cache'. I see that the cache can be used directly as also has been mentioned in the blog.
I was wondering if their is a way I can embed a DB call (using reactive style via panache), in the placeholder , i.e
The above code does not compile cause the
DBservice.findById(k)
returns aUni<myObject>
in place ofmyObject
. But when using the reactive drivers i think we can only get Uni's or Multi's.Any suggestion would be of great help.
Beta Was this translation helpful? Give feedback.
All reactions