Package org.aoju.bus.cache.annotation
Annotation Interface Cached
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String value- Returns:
- Specifies the Used cache implementation, default the first
cachesconfig inCacheAspect
- Default:
""
-
prefix
String prefix- Returns:
- Specifies the start prefix on every key, if the
Methodhave nonparam,prefixis the consts key used by thisMethod
- Default:
""
-
condition
String condition- Returns:
- use SpEL, when this spel is
true, thisMethodwill go through by cache
- Default:
""
-
expire
int expire- Returns:
- expire time, time unit: seconds
- Default:
0
-