@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited @Documented public @interface Cacheable
| Modifier and Type | Optional Element and Description |
|---|---|
String |
cacheName
string literal or groovy expression or template for computing the cacheName dynamically.
|
String |
condition
groovy expression used for making the method caching conditional.
|
String |
key
string literal or groovy expression or template for computing the key dynamically.
|
String |
value
alias of
cacheName() }
string literal or groovy expression or template for computing the cacheName dynamically. |
public abstract String value
cacheName() }
string literal or groovy expression or template for computing the cacheName dynamically.
e.g. groovy expression/templates: "$subscriptionId" , "$subscriptionId-$clusterId", "@.subscriptionId"public abstract String cacheName
"$subscriptionId" , "$subscriptionId-$clusterId", "@.subscriptionId"public abstract String key
"$subscriptionId" , "$subscriptionId-$clusterId", "@.subscriptionId"public abstract String condition
"$items && $items[0]=='xxx'" Copyright © 2021. All rights reserved.