play.cache
Annotation Type Cached


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface Cached

Mark an action to be cached on server side.


Required Element Summary
 java.lang.String key
          The cache key to store the result in
 
Optional Element Summary
 int duration
          The duration the action should be cached for.
 

Element Detail

key

public abstract java.lang.String key
The cache key to store the result in

duration

public abstract int duration
The duration the action should be cached for. Defaults to 0.

Default:
0