-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 programmatic API - support asynchronous value loader #30314
Conversation
mkouba
commented
Jan 11, 2023
- resolves Cache programmatic API - support asynchronous value loader #30311
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/caffeine/CaffeineCacheImpl.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
@gwenneg I would really like to hear your opinion as well ;-) |
Sorry, busy week 😄 I'll take a look shortly. |
No problem. Thanks a lot! |
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/caffeine/CaffeineCacheImpl.java
Outdated
Show resolved
Hide resolved
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/caffeine/CaffeineCacheImpl.java
Outdated
Show resolved
Hide resolved
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/caffeine/CaffeineCacheImpl.java
Outdated
Show resolved
Hide resolved
@gwenneg I don't think that |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I need to take care of urgent matters, I'll review this as soon as I can (which may be tomorrow). |
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/CacheResultInterceptor.java
Show resolved
Hide resolved
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/caffeine/CaffeineCacheImpl.java
Outdated
Show resolved
Hide resolved
extensions/cache/runtime/src/main/java/io/quarkus/cache/runtime/caffeine/CaffeineCacheImpl.java
Outdated
Show resolved
Hide resolved
@gwenneg all your comments should be addressed now... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new code in CaffeineCacheImpl
contains one method reference and two lambdas. You may want to replace them with something else if they are still considered a bad practice in the Quarkus runtime code.
Otherwise, LGTM. Thanks!
Extensive usage of lambdas is probably still considered a bad practice. Let me fix that. |
- resolves quarkusio#30311 - CacheResultInterceptor - use Cache#getAsync() for async return types - deprecate UnresolvedUniValue
Done. |
✔️ The latest workflow run for the pull request has completed successfully. It should be safe to merge provided you have a look at the other checks in the summary. |