@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)
@EnableConfigurationProperties(value=LoadBalancerCacheProperties.class)
@Conditional(value=org.springframework.cloud.loadbalancer.config.LoadBalancerCacheAutoConfiguration.OnLoadBalancerCachingEnabledCondition.class)
public class LoadBalancerCacheAutoConfiguration
extends Object
An AutoConfiguration that automatically enables caching 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