@ConfigurationProperties(prefix="spring.cache") public class CacheProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CacheProperties.Caffeine
Caffeine specific cache properties.
|
static class |
CacheProperties.Couchbase
Couchbase specific cache properties.
|
static class |
CacheProperties.EhCache
EhCache specific cache properties.
|
static class |
CacheProperties.Infinispan
Infinispan specific cache properties.
|
static class |
CacheProperties.JCache
JCache (JSR-107) specific cache properties.
|
static class |
CacheProperties.Redis
Redis-specific cache properties.
|
Constructor and Description |
---|
CacheProperties() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCacheNames() |
CacheProperties.Caffeine |
getCaffeine() |
CacheProperties.Couchbase |
getCouchbase() |
CacheProperties.EhCache |
getEhcache() |
CacheProperties.Infinispan |
getInfinispan() |
CacheProperties.JCache |
getJcache() |
CacheProperties.Redis |
getRedis() |
CacheType |
getType() |
Resource |
resolveConfigLocation(Resource config)
Resolve the config location if set.
|
void |
setCacheNames(List<String> cacheNames) |
void |
setType(CacheType mode) |
public CacheType getType()
public void setType(CacheType mode)
public CacheProperties.Caffeine getCaffeine()
public CacheProperties.Couchbase getCouchbase()
public CacheProperties.EhCache getEhcache()
public CacheProperties.Infinispan getInfinispan()
public CacheProperties.JCache getJcache()
public CacheProperties.Redis getRedis()
public Resource resolveConfigLocation(Resource config)
config
- the config resourcenull
if it is not setIllegalArgumentException
- if the config attribute is set to an unknown
locationCopyright © 2019 Pivotal Software, Inc.. All rights reserved.