Provide a @CacheConfig annotation to share class-level customizations [SPR-11316] #15940
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Stéphane Nicoll opened SPR-11316 and commented
#13338 and #15257 have introduced two customisations related to the cache operation: cache manager and key generator.
The feature is tedious and error-prone as these customisations have to be set for each and every operation. The idea here is to introduce a new annotation
@CacheConfig
that could be set at class-level only and that would gather those customisations as well as the default cache name. Something like:If a caching operation specifies its own cache manager, key generator or cache names, that one is used instead of the default.
In other words, this is about giving 3 levels of customisation:
@CacheConfig
annotation)@Cacheable
)Issue Links:
@Cacheable
for cache manager nameReferenced from: commits 2b89c1a, 3c28301
0 votes, 6 watchers
The text was updated successfully, but these errors were encountered: