From b70024487a764c94814beca3f256995d96b34671 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 2 Dec 2019 17:00:38 +0800 Subject: [PATCH] =?UTF-8?q?RedisCache=E7=9A=84getCacheSet=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BC=9A=E7=A7=BB=E9=99=A4=E5=85=83=E7=B4=A0=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/framework/redis/RedisCache.java | 6 +----- .../ruoyi/framework/security/service/PermissionService.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ruoyi/src/main/java/com/ruoyi/framework/redis/RedisCache.java b/ruoyi/src/main/java/com/ruoyi/framework/redis/RedisCache.java index 9ec754341..1fa3eda85 100644 --- a/ruoyi/src/main/java/com/ruoyi/framework/redis/RedisCache.java +++ b/ruoyi/src/main/java/com/ruoyi/framework/redis/RedisCache.java @@ -158,11 +158,7 @@ public class RedisCache { Set dataSet = new HashSet(); BoundSetOperations operation = redisTemplate.boundSetOps(key); - Long size = operation.size(); - for (int i = 0; i < size; i++) - { - dataSet.add(operation.pop()); - } + dataSet = operation.members(); return dataSet; } diff --git a/ruoyi/src/main/java/com/ruoyi/framework/security/service/PermissionService.java b/ruoyi/src/main/java/com/ruoyi/framework/security/service/PermissionService.java index d467282b2..c0b40a67d 100644 --- a/ruoyi/src/main/java/com/ruoyi/framework/security/service/PermissionService.java +++ b/ruoyi/src/main/java/com/ruoyi/framework/security/service/PermissionService.java @@ -10,7 +10,7 @@ import com.ruoyi.framework.security.LoginUser; import com.ruoyi.project.system.domain.SysRole; /** - * RuoYi首创 自定义权限实现,se取自SpringSecurity首字母 + * RuoYi首创 自定义权限实现,ss取自SpringSecurity首字母 * * @author ruoyi */