@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface Cached
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
key
The cache key to store the result in
|
Modifier and Type | Optional Element and Description |
---|---|
int |
duration
The duration the action should be cached for.
|