Skip to content

Incorrect annotation is given in "Cache Abstraction" part of Spring reference [SPR-14319] #18891

@spring-projects-issues

Description

@spring-projects-issues

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, @CacheRemove and @CacheRemoveAll as well as the @CacheDefaults, @CacheKey and @CacheValue companions. 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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions