@Configuration @AutoConfigureAfter(value=com.azure.spring.cloud.autoconfigure.context.AzureContextAutoConfiguration.class) @ConditionalOnProperty(value="spring.cloud.azure.redis.enabled", matchIfMissing=true) @ConditionalOnClass(value=org.springframework.data.redis.core.RedisOperations.class) @EnableConfigurationProperties(value=AzureRedisProperties.class) public class AzureRedisAutoConfiguration extends Object
| Constructor and Description |
|---|
AzureRedisAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
RedisCacheManager |
redisCacheManager(com.azure.resourcemanager.AzureResourceManager azureResourceManager,
AzureProperties azureProperties) |
org.springframework.boot.autoconfigure.data.redis.RedisProperties |
redisProperties(AzureRedisProperties azureRedisProperties,
RedisCacheManager redisCacheManager) |
@ConditionalOnMissingBean @Bean public RedisCacheManager redisCacheManager(com.azure.resourcemanager.AzureResourceManager azureResourceManager, AzureProperties azureProperties)
@ConditionalOnMissingBean @Primary @Bean public org.springframework.boot.autoconfigure.data.redis.RedisProperties redisProperties(AzureRedisProperties azureRedisProperties, RedisCacheManager redisCacheManager)
Copyright © 2021 Microsoft Corporation. All rights reserved.