diff --git a/spring-context/src/main/java/org/springframework/cache/annotation/CacheConfig.java b/spring-context/src/main/java/org/springframework/cache/annotation/CacheConfig.java index 5ee1875a5bb..c5a3f9c4922 100644 --- a/spring-context/src/main/java/org/springframework/cache/annotation/CacheConfig.java +++ b/spring-context/src/main/java/org/springframework/cache/annotation/CacheConfig.java @@ -35,6 +35,8 @@ import org.springframework.core.annotation.AliasFor; * @author Sam Brannen * @since 4.1 * @see Cacheable + * @see CachePut + * @see CacheEvict */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) diff --git a/spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java b/spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java index 21becaf2b60..a85b2fef2bf 100644 --- a/spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java +++ b/spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java @@ -38,6 +38,8 @@ import org.springframework.core.annotation.AliasFor; * @author Sam Brannen * @since 3.1 * @see CacheConfig + * @see Cacheable + * @see CachePut */ @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @@ -48,6 +50,8 @@ public @interface CacheEvict { /** * Alias for {@link #cacheNames}. + *
Intended to be used when no other attributes are needed, for example: + * {@code @CacheEvict("books")}. */ @AliasFor("cacheNames") String[] value() default {}; diff --git a/spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java b/spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java index daf5788ac2a..74f1bf55003 100644 --- a/spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java +++ b/spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java @@ -46,6 +46,8 @@ import org.springframework.core.annotation.AliasFor; * @author Sam Brannen * @since 3.1 * @see CacheConfig + * @see Cacheable + * @see CacheEvict */ @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @@ -56,6 +58,8 @@ public @interface CachePut { /** * Alias for {@link #cacheNames}. + *
Intended to be used when no other attributes are needed, for example: + * {@code @CachePut("books")}. */ @AliasFor("cacheNames") String[] value() default {}; diff --git a/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java b/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java index 8164da481ea..fa24ab07524 100644 --- a/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java +++ b/spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java @@ -54,6 +54,8 @@ import org.springframework.core.annotation.AliasFor; * @author Sam Brannen * @since 3.1 * @see CacheConfig + * @see CachePut + * @see CacheEvict */ @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @@ -64,6 +66,8 @@ public @interface Cacheable { /** * Alias for {@link #cacheNames}. + *
Intended to be used when no other attributes are needed, for example: + * {@code @Cacheable("books")}. */ @AliasFor("cacheNames") String[] value() default {};