Package cn.com.anysdk.core.annotation
Annotation Interface Cache
缓存注解
用于标记需要缓存的方法
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean是否缓存空值long缓存过期时间缓存过期时间单位缓存键缓存键前缀缓存类型
-
Element Details
-
prefix
String prefix缓存键前缀- Default:
""
-
key
String key缓存键- Default:
""
-
expire
long expire缓存过期时间- Default:
0L
-
expireUnit
TimeUnit expireUnit缓存过期时间单位- Default:
SECONDS
-
cacheNull
boolean cacheNull是否缓存空值- Default:
false
-
type
Cache.CacheType type缓存类型- Default:
LOCAL
-