From 1996ee1421a410b0e2f13ec68adcd739036aac81 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Thu, 17 Nov 2022 00:53:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.3.2=E3=80=91=E3=80=90role=E3=80=91?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=BC=93=E5=AD=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/modular/role/cache/RoleDataScopeMemoryCache.java | 5 +++++ .../system/modular/role/cache/RoleDataScopeRedisCache.java | 5 +++++ .../kernel/system/modular/role/cache/RoleMemoryCache.java | 5 +++++ .../kernel/system/modular/role/cache/RoleRedisCache.java | 5 +++++ .../system/modular/role/cache/RoleResourceMemoryCache.java | 5 +++++ .../system/modular/role/cache/RoleResourceRedisCache.java | 4 ++++ 6 files changed, 29 insertions(+) diff --git a/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleDataScopeMemoryCache.java b/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleDataScopeMemoryCache.java index c118260d5..2b4e3bc7b 100644 --- a/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleDataScopeMemoryCache.java +++ b/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleDataScopeMemoryCache.java @@ -47,4 +47,9 @@ public class RoleDataScopeMemoryCache extends AbstractMemoryCacheOperator { return SystemCachesConstants.ROLE_INFO_CACHE_PREFIX; } + @Override + public Boolean divideByTenant() { + return true; + } + } diff --git a/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleRedisCache.java b/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleRedisCache.java index d3e3dbab8..33da5782a 100644 --- a/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleRedisCache.java +++ b/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleRedisCache.java @@ -46,4 +46,9 @@ public class RoleRedisCache extends AbstractRedisCacheOperator { return SystemCachesConstants.ROLE_INFO_CACHE_PREFIX; } + @Override + public Boolean divideByTenant() { + return true; + } + } \ No newline at end of file diff --git a/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleResourceMemoryCache.java b/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleResourceMemoryCache.java index cfa78d262..98336d734 100644 --- a/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleResourceMemoryCache.java +++ b/kernel-s-system/system-business-role/src/main/java/cn/stylefeng/roses/kernel/system/modular/role/cache/RoleResourceMemoryCache.java @@ -47,4 +47,9 @@ public class RoleResourceMemoryCache extends AbstractMemoryCacheOperator