|
|
|
@ -943,6 +943,34 @@ public class RedissonScoredSortedSet<V> extends RedissonExpirable implements RSc
|
|
|
|
|
return commandExecutor.writeAsync(getRawName(), codec, RedisCommands.ZINTER, args.toArray());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Integer countIntersection(String... names) {
|
|
|
|
|
return get(countIntersectionAsync(names));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Integer countIntersection(int limit, String... names) {
|
|
|
|
|
return get(countIntersectionAsync(limit, names));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public RFuture<Integer> countIntersectionAsync(String... names) {
|
|
|
|
|
return countIntersectionAsync(0, names);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public RFuture<Integer> countIntersectionAsync(int limit, String... names) {
|
|
|
|
|
List<Object> args = new ArrayList<>(names.length + 1);
|
|
|
|
|
args.add(getRawName());
|
|
|
|
|
args.add(names.length);
|
|
|
|
|
args.addAll(Arrays.asList(names));
|
|
|
|
|
if (limit > 0) {
|
|
|
|
|
args.add("LIMIT");
|
|
|
|
|
args.add(limit);
|
|
|
|
|
}
|
|
|
|
|
return commandExecutor.writeAsync(getRawName(), codec, RedisCommands.ZINTERCARD_INT, args.toArray());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int union(String... names) {
|
|
|
|
|
return get(unionAsync(names));
|
|
|
|
|