Package play.cache
Annotation Interface Cached
Mark an action to be cached on server side.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe duration the action should be cached for.
-
Element Details
-
key
String keyThe cache key to store the result in- Returns:
- the cache key
-
-
-
duration
int durationThe duration the action should be cached for. Defaults to 0.- Returns:
- the duration
- Default:
- 0
-