|
|
@ -16,9 +16,9 @@
|
|
|
|
package org.redisson;
|
|
|
|
package org.redisson;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Queue;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
import java.util.UUID;
|
|
|
|
import java.util.concurrent.atomic.AtomicLong;
|
|
|
|
import java.util.concurrent.atomic.AtomicLong;
|
|
|
|
|
|
|
|
|
|
|
@ -125,8 +125,8 @@ public class Redisson implements RedissonClient {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public <V> List<RBucket<V>> getBuckets(String pattern) {
|
|
|
|
public <V> List<RBucket<V>> getBuckets(String pattern) {
|
|
|
|
Future<Queue<String>> r = commandExecutor.readAllAsync(RedisCommands.KEYS, pattern);
|
|
|
|
Future<Collection<String>> r = commandExecutor.readAllAsync(RedisCommands.KEYS, pattern);
|
|
|
|
Queue<String> keys = commandExecutor.get(r);
|
|
|
|
Collection<String> keys = commandExecutor.get(r);
|
|
|
|
List<RBucket<V>> buckets = new ArrayList<RBucket<V>>(keys.size());
|
|
|
|
List<RBucket<V>> buckets = new ArrayList<RBucket<V>>(keys.size());
|
|
|
|
for (Object key : keys) {
|
|
|
|
for (Object key : keys) {
|
|
|
|
if(key != null) {
|
|
|
|
if(key != null) {
|
|
|
@ -326,7 +326,7 @@ public class Redisson implements RedissonClient {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Queue<String> findKeysByPattern(String pattern) {
|
|
|
|
public Collection<String> findKeysByPattern(String pattern) {
|
|
|
|
return commandExecutor.get(findKeysByPatternAsync(pattern));
|
|
|
|
return commandExecutor.get(findKeysByPatternAsync(pattern));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -342,7 +342,7 @@ public class Redisson implements RedissonClient {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Future<Queue<String>> findKeysByPatternAsync(String pattern) {
|
|
|
|
public Future<Collection<String>> findKeysByPatternAsync(String pattern) {
|
|
|
|
return commandExecutor.readAllAsync(RedisCommands.KEYS, pattern);
|
|
|
|
return commandExecutor.readAllAsync(RedisCommands.KEYS, pattern);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|