@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Cacheable
Cacheable annotation is inherited by
subclasses; it can be overridden by specifying Cacheable on a subclass.
Cacheable(false) means that the entity and its state must not be cached by the provider.
| Modifier and Type | Optional Element and Description |
|---|---|
int |
minutes
(Optional)
|
Class<?>[] |
roots
(Optional) The cache roots
|
String |
type
(Optional) The cache type such as MEMORY, OSCACHE, EHCACHE or others.
|
boolean |
value
(Optional) Whether or not the entity should be cached.
|
public abstract boolean value
public abstract String type
public abstract Class<?>[] roots
Copyright © 2084–2018 dukeware.com. All rights reserved.