RedisCache的getCacheSet方法会移除元素的bug
This commit is contained in:
		
							parent
							
								
									2e2882b0d5
								
							
						
					
					
						commit
						b70024487a
					
				@ -158,11 +158,7 @@ public class RedisCache
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        Set<T> dataSet = new HashSet<T>();
 | 
					        Set<T> dataSet = new HashSet<T>();
 | 
				
			||||||
        BoundSetOperations<String, T> operation = redisTemplate.boundSetOps(key);
 | 
					        BoundSetOperations<String, T> operation = redisTemplate.boundSetOps(key);
 | 
				
			||||||
        Long size = operation.size();
 | 
					        dataSet = operation.members();
 | 
				
			||||||
        for (int i = 0; i < size; i++)
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
            dataSet.add(operation.pop());
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        return dataSet;
 | 
					        return dataSet;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ import com.ruoyi.framework.security.LoginUser;
 | 
				
			|||||||
import com.ruoyi.project.system.domain.SysRole;
 | 
					import com.ruoyi.project.system.domain.SysRole;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * RuoYi首创 自定义权限实现,se取自SpringSecurity首字母
 | 
					 * RuoYi首创 自定义权限实现,ss取自SpringSecurity首字母
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
 * @author ruoyi
 | 
					 * @author ruoyi
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user