|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|