Package dev.voidframework.cache
Annotation Interface Cache
Annotation indicating that the result of the method will be cached and reused in future calls.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionKey of the cache in which result is stored.intRetention time (in seconds).
-
Element Details
-
key
String keyKey of the cache in which result is stored.- Returns:
- Key of the cache in which result is stored
- Default:
- "{class}::{method}"
-
timeToLive
int timeToLiveRetention time (in seconds).- Returns:
- Retention time (in seconds).
- Default:
- -1
-