RedisCache的getCacheSet方法会移除元素的bug

feature/model
RuoYi 5 years ago
parent 2e2882b0d5
commit b70024487a

@ -158,11 +158,7 @@ public class RedisCache
{
Set<T> dataSet = new HashSet<T>();
BoundSetOperations<String, T> operation = redisTemplate.boundSetOps(key);
Long size = operation.size();
for (int i = 0; i < size; i++)
{
dataSet.add(operation.pop());
}
dataSet = operation.members();
return dataSet;
}

@ -10,7 +10,7 @@ import com.ruoyi.framework.security.LoginUser;
import com.ruoyi.project.system.domain.SysRole;
/**
* RuoYi seSpringSecurity
* RuoYi ssSpringSecurity
*
* @author ruoyi
*/

Loading…
Cancel
Save