@groovy.transform.AutoClone @groovy.transform.CompileStatic @groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) class CacheConfig extends java.lang.Object implements java.lang.Cloneable
Defines the cache configuration.
Type | Name and description |
---|---|
static java.util.List |
INCLUDE_OPTIONS |
static java.util.List |
USAGE_OPTIONS |
boolean |
enabled Whether caching is enabled |
java.lang.String |
include What to include in caching |
java.lang.String |
usage The cache usage |
Constructor and description |
---|
CacheConfig
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static CacheConfig |
configureExisting(CacheConfig cacheConfig, java.util.Map config) Configures an existing CacheConfig instance |
|
static CacheConfig |
configureExisting(CacheConfig cacheConfig, groovy.lang.Closure config) Configures an existing PropertyConfig instance |
|
static CacheConfig |
configureNew(groovy.lang.Closure config) Configures a new CacheConfig instance |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Whether caching is enabled
What to include in caching
The cache usage
Configures an existing CacheConfig instance
config
- The configurationConfigures an existing PropertyConfig instance
config
- The configurationConfigures a new CacheConfig instance
config
- The configurationGroovy Documentation