@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.Guava
Guava specific cache properties.
|
static class |
CacheProperties.Hazelcast
Deprecated.
|
static class |
CacheProperties.Infinispan
Infinispan specific cache properties.
|
static class |
CacheProperties.JCache
JCache (JSR-107) 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.Guava |
getGuava() |
CacheProperties.Hazelcast |
getHazelcast()
Deprecated.
|
CacheProperties.Infinispan |
getInfinispan() |
CacheProperties.JCache |
getJcache() |
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()
@Deprecated public CacheProperties.Hazelcast getHazelcast()
public CacheProperties.Infinispan getInfinispan()
public CacheProperties.JCache getJcache()
public CacheProperties.Guava getGuava()
public Resource resolveConfigLocation(Resource config)
config
- the config resourcenull
if it is not setIllegalArgumentException
- if the config attribute is set to an unknown
locationCopyright © 2017 Pivotal Software, Inc.. All rights reserved.