@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Documented @Inherited public @interface Cache
| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
clear
更新结果(移除缓存并执行方法)
|
String |
expire
缓存有效期
com.baomidou.shaun.core.util.ExpireTimeUtil.getTargetDate(java.util.Date, java.lang.String)
|
boolean |
increment
更新结果(increment)
-Number 自变更
|
String |
key
缓存key EL
|
String |
name
缓存key的前缀
|
boolean |
save
保存结果(已有结果不再执行)
|
boolean |
saveEmpty
缓存空结果
|
boolean |
update
更新结果(执行并更新)
|
Copyright © 2023. All rights reserved.