Skip to content

CacheLoader is ignored as of Guava 11 [SPR-12842] #17440

@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-12842 and commented

Since Guava 11, there is a separate interface to manipulate a CacheLoader: LoadingCache.

Our implementation uses Cache regardless of the fact we have specified a CacheLoader or not. In the former case a LoadingCache is created and as a get method that will invoke the loader if necessary.

Our current GuavaCache calls getIfPresent that will never use the loader.


Affects: 4.1.5

Referenced from: commits 9172a6d, f52702e

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions