Skip to content

CaffeineCache with LoadingCache #25194

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

Closed

Conversation

stefano-salmaso
Copy link

When CaffeineCache is created with a LoadingCache, the LoadingCache is
used with the method public ValueWrapper get(Object key) but not
with method public <T> T get(Object key, @Nullable Class<T> type).
Using LoadingCache is incompatible with @Cacheable pattern but
consistently call the LoadingCache in both methods is better than now.
Removing the usage is a backward-incompatible change.

Closes gh-25173

When CaffeineCache is created with a LoadingCache, the LoadingCache is
used with the method `public ValueWrapper get(Object key)` but not
with method `public <T> T get(Object key, @nullable Class<T> type)`.
Using LoadingCache is incompatible with @Cacheable pattern but
consistently call the LoadingCache in both methods is better than now.
Removing the usage is a backward-incompatible change.

Closes spring-projectsgh-25173
@pivotal-issuemaster
Copy link

@stefano-salmaso Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@stefano-salmaso Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 5, 2020
@stefano-salmaso
Copy link
Author

@snicoll ... any chance to take this PR into consideration?
(also close it is a possibility.. 😀)

@snicoll
Copy link
Member

snicoll commented Jul 24, 2020

It very much was @stefano-salmaso but I've been busy on other things lately. I apologize for the delay and I've flagged the original issue for the 5.3 bucket. I am not sure if we're going to fix it the way you've suggested so I'll keep both the issue and the PR open for now.

@snicoll
Copy link
Member

snicoll commented Aug 7, 2020

Thanks for the PR but I've decided to use a different approach, see f3cedf2 for more details.

@snicoll snicoll closed this Aug 7, 2020
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CaffeineCache does not support LoadingCache consistently
4 participants