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

Override getOrElseUpdate to set expiration based on value #11511

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Oct 25, 2022

WIP, don't review yet.

Allows more flexibility. IMHO there are cases when it makes sense to set the expiration date based on the "new" value that was just calculated. Makes it possible to fix #11506 (I am not saying there are no other ways to fix that problem, even if so this pull request on it's on does make some sense IMHO)

@mkurz mkurz force-pushed the getOrElseUpdate_override branch 2 times, most recently from cca4be7 to 1cc13d4 Compare October 25, 2022 20:34
@mkurz
Copy link
Member Author

mkurz commented Oct 26, 2022

Rebased onto #11516

@mkurz mkurz added this to the 2.9.0 milestone Oct 27, 2022
@mkurz mkurz modified the milestones: 2.9.0, 2.10.0 May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

Potential Cache Stampede with Caffeine Cached Endpoint
1 participant