@Configuration(proxyBeanMethods=false)
@Import(value={ContextCredentialsAutoConfiguration.class,io.awspring.cloud.context.config.annotation.ContextDefaultConfigurationRegistrar.class})
@ConditionalOnClass(value=com.amazonaws.services.elasticache.AmazonElastiCache.class)
@ConditionalOnProperty(name="cloud.aws.elasticache.enabled",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(value=ElastiCacheProperties.class)
public class ElastiCacheAutoConfiguration
extends Object
| Constructor and Description |
|---|
ElastiCacheAutoConfiguration(ElastiCacheProperties properties,
org.springframework.beans.factory.ObjectProvider<io.awspring.cloud.core.env.stack.ListableStackResourceFactory> stackResourceFactory,
org.springframework.beans.factory.ObjectProvider<com.amazonaws.ClientConfiguration> globalClientConfiguration,
org.springframework.beans.factory.ObjectProvider<com.amazonaws.ClientConfiguration> elastiCacheClientConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
io.awspring.cloud.core.config.AmazonWebserviceClientFactoryBean<com.amazonaws.services.elasticache.AmazonElastiCacheClient> |
amazonElastiCache(org.springframework.beans.factory.ObjectProvider<io.awspring.cloud.core.region.RegionProvider> regionProvider,
org.springframework.beans.factory.ObjectProvider<com.amazonaws.auth.AWSCredentialsProvider> credentialsProvider) |
org.springframework.cache.annotation.CachingConfigurer |
cachingConfigurer(com.amazonaws.services.elasticache.AmazonElastiCache amazonElastiCache,
io.awspring.cloud.core.env.ResourceIdResolver resourceIdResolver,
List<CacheFactory> cacheFactories) |
MemcachedCacheFactory |
memcachedCacheFactory() |
RedisCacheFactory |
redisCacheFactory() |
public ElastiCacheAutoConfiguration(ElastiCacheProperties properties, org.springframework.beans.factory.ObjectProvider<io.awspring.cloud.core.env.stack.ListableStackResourceFactory> stackResourceFactory, @Qualifier(value="com.amazonaws.ClientConfiguration.BEAN_NAME") org.springframework.beans.factory.ObjectProvider<com.amazonaws.ClientConfiguration> globalClientConfiguration, @Qualifier(value="elastiCacheClientConfiguration") org.springframework.beans.factory.ObjectProvider<com.amazonaws.ClientConfiguration> elastiCacheClientConfiguration)
@Bean
@ConditionalOnMissingBean(value=com.amazonaws.services.elasticache.AmazonElastiCache.class)
public io.awspring.cloud.core.config.AmazonWebserviceClientFactoryBean<com.amazonaws.services.elasticache.AmazonElastiCacheClient> amazonElastiCache(org.springframework.beans.factory.ObjectProvider<io.awspring.cloud.core.region.RegionProvider> regionProvider,
org.springframework.beans.factory.ObjectProvider<com.amazonaws.auth.AWSCredentialsProvider> credentialsProvider)
@Bean
@ConditionalOnMissingBean(value=org.springframework.cache.annotation.CachingConfigurer.class)
public org.springframework.cache.annotation.CachingConfigurer cachingConfigurer(com.amazonaws.services.elasticache.AmazonElastiCache amazonElastiCache,
io.awspring.cloud.core.env.ResourceIdResolver resourceIdResolver,
List<CacheFactory> cacheFactories)
@Bean @ConditionalOnClass(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) public RedisCacheFactory redisCacheFactory()
@Bean @ConditionalOnClass(value=net.spy.memcached.MemcachedClient.class) public MemcachedCacheFactory memcachedCacheFactory()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.