为解决多租户时Redis缓存设置失效时间不生效问题,而将TimeoutRedisCacheManager作为TenantRedisCacheManager的父类。这里修改后让租户ID可以被传递。

pull/53/head
luodz 2023-09-05 10:46:19 +08:00
parent f546d33f40
commit 4fe865e94e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class TimeoutRedisCacheManager extends RedisCacheManager {
Duration duration = parseDuration(names[1]);
cacheConfig = cacheConfig.entryTtl(duration);
}
return super.createRedisCache(names[0], cacheConfig);
return super.createRedisCache(name, cacheConfig);
}
/**