@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface CacheFor
If a time is not specified, the results will be cached for 1 hour by default.
Example: @CacheFor("1h")
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends CacheKeyGenerator> |
generator |
java.lang.String |
id |
java.lang.String |
value |
public abstract java.lang.Class<? extends CacheKeyGenerator> generator
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly