|
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.dromara.common.redis.config.properties.RedissonProperties;
|
|
|
import org.dromara.common.redis.handler.KeyPrefixHandler;
|
|
|
-import org.dromara.common.redis.manager.PlusSpringCacheManager;
|
|
|
import org.redisson.client.codec.StringCodec;
|
|
|
import org.redisson.codec.CompositeCodec;
|
|
|
import org.redisson.codec.TypedJsonJacksonCodec;
|
|
@@ -16,8 +15,6 @@ import org.redisson.spring.starter.RedissonAutoConfigurationCustomizer;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
-import org.springframework.cache.CacheManager;
|
|
|
-import org.springframework.cache.annotation.EnableCaching;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
|
/**
|
|
@@ -27,7 +24,6 @@ import org.springframework.context.annotation.Bean;
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@AutoConfiguration
|
|
|
-@EnableCaching
|
|
|
@EnableConfigurationProperties(RedissonProperties.class)
|
|
|
public class RedisConfig {
|
|
|
|
|
@@ -86,14 +82,6 @@ public class RedisConfig {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 自定义缓存管理器 整合spring-cache
|
|
|
- */
|
|
|
- @Bean
|
|
|
- public CacheManager cacheManager() {
|
|
|
- return new PlusSpringCacheManager();
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* redis集群配置 yml
|
|
|
*
|