Annotation Interface Cache
When annotated on a zero argument public/protected/package-private method in a Guice-constructed object this annotation will
automatically
cache the result of the method
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe name of the (global) cache that will be used (if not specified a global cache name based on the fully qualified class/method name will be used)long
The time after which cached results will have been considered stale and in need of a refresh
-
Element Details
-
timeout
long timeoutThe time after which cached results will have been considered stale and in need of a refresh- Returns:
- Default:
- 60000L
-
name
String nameThe name of the (global) cache that will be used (if not specified a global cache name based on the fully qualified class/method name will be used)- Returns:
- Default:
- ""
-