|
|
|
@ -312,14 +312,10 @@ public class RedissonSetMultimapValues<V> extends RedissonExpirable implements R
|
|
|
|
|
@Override
|
|
|
|
|
public RFuture<Boolean> containsAllAsync(Collection<?> c) {
|
|
|
|
|
List<Object> args = new ArrayList<Object>(c.size() + 2);
|
|
|
|
|
try {
|
|
|
|
|
byte[] keyState = codec.getMapKeyEncoder().encode(key);
|
|
|
|
|
byte[] keyState = encodeMapKey(key);
|
|
|
|
|
args.add(System.currentTimeMillis());
|
|
|
|
|
args.add(keyState);
|
|
|
|
|
args.addAll(c);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return commandExecutor.evalReadAsync(getName(), codec, EVAL_CONTAINS_ALL_WITH_VALUES,
|
|
|
|
|
"local expireDate = 92233720368547758; " +
|
|
|
|
@ -366,14 +362,10 @@ public class RedissonSetMultimapValues<V> extends RedissonExpirable implements R
|
|
|
|
|
@Override
|
|
|
|
|
public RFuture<Boolean> retainAllAsync(Collection<?> c) {
|
|
|
|
|
List<Object> args = new ArrayList<Object>(c.size() + 2);
|
|
|
|
|
try {
|
|
|
|
|
byte[] keyState = codec.getMapKeyEncoder().encode(key);
|
|
|
|
|
byte[] keyState = encodeMapKey(key);
|
|
|
|
|
args.add(System.currentTimeMillis());
|
|
|
|
|
args.add(keyState);
|
|
|
|
|
args.addAll(c);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return commandExecutor.evalWriteAsync(getName(), codec, EVAL_CONTAINS_ALL_WITH_VALUES,
|
|
|
|
|
"local expireDate = 92233720368547758; " +
|
|
|
|
@ -410,14 +402,10 @@ public class RedissonSetMultimapValues<V> extends RedissonExpirable implements R
|
|
|
|
|
@Override
|
|
|
|
|
public RFuture<Boolean> removeAllAsync(Collection<?> c) {
|
|
|
|
|
List<Object> args = new ArrayList<Object>(c.size() + 2);
|
|
|
|
|
try {
|
|
|
|
|
byte[] keyState = codec.getMapKeyEncoder().encode(key);
|
|
|
|
|
byte[] keyState = encodeMapKey(key);
|
|
|
|
|
args.add(System.currentTimeMillis());
|
|
|
|
|
args.add(keyState);
|
|
|
|
|
args.addAll(c);
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return commandExecutor.evalWriteAsync(getName(), codec, EVAL_CONTAINS_ALL_WITH_VALUES,
|
|
|
|
|
"local expireDate = 92233720368547758; " +
|
|
|
|
|