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
Exposing getIfPresent in the CaffeineCache #26863
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
@gwenneg CI workflows were not executed, can you approve their run? |
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.
Thanks for opening this PR @ivansenic!
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
Updated the PR as requested, but please look into #26863 (comment) |
I'll review this shortly (hopefully today). |
Rebased on the latest |
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.
Thanks for your patience! I'm quite busy this week, sorry for the delay 😃
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/CaffeineCache.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/CaffeineCache.java
Outdated
Show resolved
Hide resolved
Do I need to rebase on the latest master? |
Only in case of conflicts. It's not needed right now. |
Co-authored-by: Gwenneg Lepage <gwenneg@users.noreply.github.com>
Co-authored-by: Gwenneg Lepage <gwenneg@users.noreply.github.com>
OK all tasks done, I guess this can be merged. |
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.
LGTM
Thank you again for your patience 😄
This comment has been minimized.
This comment has been minimized.
One of the old tests failed but it's unrelated to this PR because it does not change the failing test or affect any of the existing caching APIs. I'll relaunch the tests to check if the failure happens consistently. |
No problem. Let me know if I can help with some other stuff in the future.. |
Fixes #26730.
Implemented the exposure of the
getIfPresent
from theCaffeineCache
, as described in the #26730.As this is my first PR, I tried to follow which test(s) should be updated by looking at references to the
CaffeineCache#keySet()
and the only test actually testing this method isProgrammaticApiTest
.. Not sure if this is enough, but as I was missing a test case for the exception thrown in the value loader, I added that..Also tried to extend the docs..
I am available for any suggestion and proposal for improvement..