play.cache
Annotation Type CacheFor


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface CacheFor

Cache an action's result.

If a time is not specified, the results will be cached for 1 hour by default.

Example: @CacheFor("1h")


Optional Element Summary
 java.lang.String id
           
 java.lang.String value
           
 

value

public abstract java.lang.String value
Default:
"1h"

id

public abstract java.lang.String id
Default:
""


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly