@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface CacheKey
CacheResult or CacheRemove annotation has specified cacheKeyMethod then
a method arguments will not be used to build cache key even if they annotated with CacheKey.| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
value
Allows specify name of a certain argument property.
|
public abstract java.lang.String value
@CacheKey("id") User user,
or in case composite property: @CacheKey("profile.name") User user.
null properties are ignored, i.e. if profile is null
then result of @CacheKey("profile.name") User user will be empty string.