Class CacheProperties
java.lang.Object
org.springframework.boot.autoconfigure.cache.CacheProperties
Configuration properties for the cache abstraction.
- Since:
- 1.3.0
- Author:
- Stephane Nicoll, EddĂș MelĂ©ndez, Ryon Day
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Caffeine specific cache properties.static class
Couchbase specific cache properties.static class
JCache (JSR-107) specific cache properties.static class
Redis-specific cache properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRedis()
getType()
resolveConfigLocation
(Resource config) Resolve the config location if set.void
setCacheNames
(List<String> cacheNames) void
-
Constructor Details
-
CacheProperties
public CacheProperties()
-
-
Method Details
-
getType
-
setType
-
getCacheNames
-
setCacheNames
-
getCaffeine
-
getCouchbase
-
getJcache
-
getRedis
-
resolveConfigLocation
Resolve the config location if set.- Parameters:
config
- the config resource- Returns:
- the location or
null
if it is not set - Throws:
IllegalArgumentException
- if the config attribute is set to an unknown location
-