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
Nested ClassesModifier and TypeClassDescriptionstatic classCaffeine specific cache properties.static classCouchbase specific cache properties.static classInfinispan specific cache properties.static classJCache (JSR-107) specific cache properties.static classRedis-specific cache properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRedis()getType()resolveConfigLocation(Resource config) Resolve the config location if set.voidsetCacheNames(List<String> cacheNames) void
-
Constructor Details
-
CacheProperties
public CacheProperties()
-
-
Method Details
-
getType
-
setType
-
getCacheNames
-
setCacheNames
-
getCaffeine
-
getCouchbase
-
getInfinispan
-
getJcache
-
getRedis
-
resolveConfigLocation
Resolve the config location if set.- Parameters:
config- the config resource- Returns:
- the location or
nullif it is not set - Throws:
IllegalArgumentException- if the config attribute is set to an unknown location
-