|
|
@ -23,6 +23,7 @@ import org.springframework.beans.factory.ObjectProvider;
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
|
|
|
import org.springframework.boot.autoconfigure.cache.CacheProperties.Redis;
|
|
|
|
import org.springframework.boot.autoconfigure.cache.CacheProperties.Redis;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
|
|
|
|
import org.springframework.cache.CacheManager;
|
|
|
|
import org.springframework.cache.CacheManager;
|
|
|
@ -45,6 +46,7 @@ import org.springframework.data.redis.serializer.RedisSerializationContext.Seria
|
|
|
|
* @since 1.3.0
|
|
|
|
* @since 1.3.0
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
|
|
|
|
@ConditionalOnClass(RedisConnectionFactory.class)
|
|
|
|
@AutoConfigureAfter(RedisAutoConfiguration.class)
|
|
|
|
@AutoConfigureAfter(RedisAutoConfiguration.class)
|
|
|
|
@ConditionalOnBean(RedisConnectionFactory.class)
|
|
|
|
@ConditionalOnBean(RedisConnectionFactory.class)
|
|
|
|
@ConditionalOnMissingBean(CacheManager.class)
|
|
|
|
@ConditionalOnMissingBean(CacheManager.class)
|
|
|
|