|
@@ -158,11 +158,7 @@ public class RedisCache |
|
@@ -158,11 +158,7 @@ public class RedisCache |
|
158
|
{
|
158
|
{
|
|
159
|
Set<T> dataSet = new HashSet<T>();
|
159
|
Set<T> dataSet = new HashSet<T>();
|
|
160
|
BoundSetOperations<String, T> operation = redisTemplate.boundSetOps(key);
|
160
|
BoundSetOperations<String, T> operation = redisTemplate.boundSetOps(key);
|
|
161
|
- Long size = operation.size();
|
|
|
|
162
|
- for (int i = 0; i < size; i++)
|
|
|
|
163
|
- {
|
|
|
|
164
|
- dataSet.add(operation.pop());
|
|
|
|
165
|
- }
|
161
|
+ dataSet = operation.members();
|
|
166
|
return dataSet;
|
162
|
return dataSet;
|
|
167
|
}
|
163
|
}
|
|
168
|
|
164
|
|