@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value={org.springframework.cache.CacheManager.class,org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.class})
@AutoConfigureAfter(value=org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration.class)
@ConditionalOnProperty(value="spring.cloud.loadbalancer.cache.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value=LoadBalancerCacheProperties.class)
public class LoadBalancerCacheAutoConfiguration
extends Object
An AutoConfiguration that automatically enables caching when when Spring Boot, and
Spring Framework Cache support are present. If Caffeine is present in the classpath, it
will be used for loadbalancer caching. If not, a default cache will be used.
- Since:
- 2.2.0
- Author:
- Olga Maciaszek-Sharma
- See Also:
CacheManager
,
CacheAutoConfiguration
,
CacheAspectSupport
,
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait