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

Apply CacheResolver to Spring's caching abstraction [SPR-11490] #16115

Closed
spring-projects-issues opened this issue Feb 27, 2014 · 2 comments
Closed
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 27, 2014

Stéphane Nicoll opened SPR-11490 and commented

The JSR-107 support (#14250) introduced the concept of CacheResolver that allows to resolve the cache(s) to use at runtime.

Right now, the only reason why the CacheManager is specified is to resolve the cache(s) based on the name(s) provided through the annotation or the cache advice.

The CacheResolver should also be supported by Spring's caching abstraction which would allow to offer a finer level of control of cache resolution.


Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

Stéphane Nicoll commented

See snicoll@c20cca1

@spring-projects-issues
Copy link
Collaborator Author

Stéphane Nicoll commented

This has been merged to master. Spring's caching annotations now support the declaration of a CacheResolver as a more flexible alternative to providing the CacheManager to use. A typical use case is to resolve the cache(s) to use dynamically (i.e. with regards to the actual method parameters for instance).

This breaks CachingConfiguration so a CachingConfigurationSupport has been introduced as a better alternative for users.

Note that our handling of the operation has been aligned to some improvements available in the JSR-107 support: all the static metadata about the cache operations are now cached instead of being recomputed at each call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants