-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Igor Stepanov opened SPR-14319 and commented
While studying the documentation for Spring Cache I've spotted a minor issue here:
Since the Spring Framework 4.1, the caching abstraction fully supports the JCache standard annotations: these are
@CacheResult,@CacheEvict,@CacheRemoveand@CacheRemoveAllas well as the@CacheDefaults,@CacheKeyand@CacheValuecompanions. These annotations can be used right the way without migrating your cache store to JSR-107: the internal implementation uses Spring's caching abstraction and provides default CacheResolver and KeyGenerator implementations that are compliant with the specification. In other words, if you are already using Spring's caching abstraction, you can switch to these standard annotations without changing your cache storage (or configuration, for that matter).
Correct me if I'm wrong, but I think here should be "CachePut" annotation instead of "CacheEvict".
Affects: 4.2.6
Reference URL: http://docs.spring.io/spring/docs/current/spring-framework-reference/html/cache.html#cache-jsr-107
Referenced from: commits ad29db8