Implement_new_SMISMEMBER_command

pull/4748/head
Nikita Koksharov 2 years ago
parent 1f45b65e25
commit 38b8669270

@ -19,6 +19,7 @@ import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.util.Collection;
import java.util.List;
import java.util.Set;
/**
@ -248,5 +249,13 @@ public interface RSetReactive<V> extends RCollectionReactive<V>, RSortableReacti
*/
Mono<Boolean> tryAdd(V... values);
/**
* Check if each element is contained in the specified collection.
* Returns contained elements.
*
* @param c - collection to check
* @return contained elements
*/
Mono<List<V>> containsEach(Collection<V> c);
}

@ -16,6 +16,7 @@
package org.redisson.api;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import io.reactivex.rxjava3.core.Flowable;
@ -250,4 +251,13 @@ public interface RSetRx<V> extends RCollectionRx<V>, RSortableRx<Set<V>> {
*/
Single<Boolean> tryAdd(V... values);
/**
* Check if each element is contained in the specified collection.
* Returns contained elements.
*
* @param c - collection to check
* @return contained elements
*/
Single<List<V>> containsEach(Collection<V> c);
}

Loading…
Cancel
Save