mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	Revert "feat: 将 redisCache 的扫描策略设置成 scan"
This reverts commit 72d2dcc68f.
			
			
This commit is contained in:
		| @@ -4,7 +4,6 @@ import cn.hutool.core.annotation.AnnotationUtil; | ||||
| import cn.iocoder.yudao.framework.common.enums.WebFilterOrderEnum; | ||||
| import cn.iocoder.yudao.framework.mybatis.core.util.MyBatisUtils; | ||||
| import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; | ||||
| import cn.iocoder.yudao.framework.redis.config.YudaoCacheProperties; | ||||
| import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnoreAspect; | ||||
| import cn.iocoder.yudao.framework.tenant.core.db.TenantDatabaseInterceptor; | ||||
| import cn.iocoder.yudao.framework.tenant.core.job.TenantJob; | ||||
| @@ -28,7 +27,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties | ||||
| import org.springframework.boot.web.servlet.FilterRegistrationBean; | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.Primary; | ||||
| import org.springframework.data.redis.cache.BatchStrategies; | ||||
| import org.springframework.data.redis.cache.RedisCacheConfiguration; | ||||
| import org.springframework.data.redis.cache.RedisCacheManager; | ||||
| import org.springframework.data.redis.cache.RedisCacheWriter; | ||||
| @@ -126,12 +124,10 @@ public class YudaoTenantAutoConfiguration { | ||||
|     @Bean | ||||
|     @Primary // 引入租户时,tenantRedisCacheManager 为主 Bean | ||||
|     public RedisCacheManager tenantRedisCacheManager(RedisTemplate<String, Object> redisTemplate, | ||||
|                                                      RedisCacheConfiguration redisCacheConfiguration, | ||||
|                                                      YudaoCacheProperties yudaoCacheProperties) { | ||||
|                                                      RedisCacheConfiguration redisCacheConfiguration) { | ||||
|         // 创建 RedisCacheWriter 对象 | ||||
|         RedisConnectionFactory connectionFactory = Objects.requireNonNull(redisTemplate.getConnectionFactory()); | ||||
|         RedisCacheWriter cacheWriter = RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, | ||||
|                 BatchStrategies.scan(yudaoCacheProperties.getRedisScanBatchSize())); | ||||
|         RedisCacheWriter cacheWriter = RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory); | ||||
|         // 创建 TenantRedisCacheManager 对象 | ||||
|         return new TenantRedisCacheManager(cacheWriter, redisCacheConfiguration); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wanwan
					wanwan