注释类型 CacheInvalidate
@Documented
@Retention(RUNTIME)
@Repeatable(CacheInvalidateContainer.class)
@Target(METHOD)
public @interface CacheInvalidate
- 作者:
- huangli
-
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明If you want to use multi backend cache system, you can setup multi "cache area" in configuration, this attribute specifies the name of the "cache area" you want to use.Expression script used for conditioning the cache operation, the operation is vetoed when evaluation result is false.Specify the key by expression script, optional.booleanIf evaluated key is an array or an instance of java.lang.Iterable, set multi to true indicates jetcache to invalidate each element of the iterable keys.
-
元素详细资料
-
name
String nameThe name of this Cache instance which need a remove operation.- 返回:
- the name of the cache which need a remove operation
-
-
-
area
String areaIf you want to use multi backend cache system, you can setup multi "cache area" in configuration, this attribute specifies the name of the "cache area" you want to use.- 返回:
- the name of cache area
- 默认值:
- "default"
-
key
String keySpecify the key by expression script, optional. If not specified, use all parameters of the target method and keyConvertor to generate one.- 返回:
- an expression script which specifies key
- 默认值:
- "$$undefined$$"
-
condition
String conditionExpression script used for conditioning the cache operation, the operation is vetoed when evaluation result is false. Evaluation occurs after real method invocation so we can refer#resultin script.- 默认值:
- "$$undefined$$"
-
multi
boolean multiIf evaluated key is an array or an instance of java.lang.Iterable, set multi to true indicates jetcache to invalidate each element of the iterable keys.- 默认值:
- false
-