From 97a7dbaa4b33bf50916ce6cc17ddc8ae9eb53654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Wed, 20 Mar 2019 15:31:42 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20spring=20cache=20?= =?UTF-8?q?=20=E4=B8=BB=E5=8A=A8=E8=BF=87=E6=9C=9F=20bug=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pig4cloud/pigx/common/data/cache/RedisAutoCacheManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/cache/RedisAutoCacheManager.java b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/cache/RedisAutoCacheManager.java index ae92cf673..a8ec2beb3 100644 --- a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/cache/RedisAutoCacheManager.java +++ b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/cache/RedisAutoCacheManager.java @@ -68,6 +68,6 @@ public class RedisAutoCacheManager extends RedisCacheManager { @Override public Cache getCache(String name) { - return super.getCache(name + StrUtil.DASHED + TenantContextHolder.getTenantId()); + return super.getCache(TenantContextHolder.getTenantId() + StrUtil.COLON + name); } }