Annotation Type Cacheable
-
@Target(METHOD) @Retention(RUNTIME) @Inherited @Documented public @interface Cacheable
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcacheNamestring literal or groovy template for computing the cacheName dynamically.Stringconditiongroovy expression used for making the method caching conditional.Stringkeystring literal or groovy template for computing the key dynamically.Stringvaluealias ofcacheName()string literal or groovy template for computing the cacheName dynamically.
-
-
-
Element Detail
-
value
String value
alias ofcacheName()string literal or groovy template for computing the cacheName dynamically. e.g. groovy templates:"$subscriptionId","$subscriptionId-$clusterId","${this.subscriptionId}"- Default:
- ""
-
-
-
cacheName
String cacheName
string literal or groovy template for computing the cacheName dynamically. e.g. groovy templates:"$subscriptionId","$subscriptionId-$clusterId","${this.subscriptionId}"- Default:
- ""
-
-
-
key
String key
string literal or groovy template for computing the key dynamically. e.g. groovy templates:"$subscriptionId","$subscriptionId-$clusterId","${this.subscriptionId}"- Default:
- "<cache>"
-
-
-
condition
String condition
groovy expression used for making the method caching conditional. e.g. groovy expression:"this.isLoading()""this.loading","this.subscriptionId=='xxx'"- Default:
- ""
-
-