@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited @Documented public @interface Cache
| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
concurrency
是否允许并发查询db
|
String[] |
evictOnMethods
配置在那些方法执行后自动清除缓存
支持通配符。 |
long |
expire
过期时间(单位:秒)
|
String[] |
refKey
引用缓存key
|
String[] |
scopeContext
缓存范围:
|
boolean |
uniqueIndex
是否业务上唯一索引
|
boolean |
userScope
缓存范围是否当前登录用户
|
Copyright © 2025. All rights reserved.