Class ReactiveTransactionalSetCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalSetCommandsImpl<K,V>
- All Implemented Interfaces:
ReactiveTransactionalRedisCommands,ReactiveTransactionalSetCommands<K,V>
public class ReactiveTransactionalSetCommandsImpl<K,V>
extends AbstractTransactionalCommands
implements ReactiveTransactionalSetCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx -
Constructor Summary
ConstructorsConstructorDescriptionReactiveTransactionalSetCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveSetCommandsImpl<K, V> reactive, TransactionHolder tx) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>Execute the command SADD.io.smallrye.mutiny.Uni<Void>Execute the command SCARD.io.smallrye.mutiny.Uni<Void>Execute the command SDIFF.io.smallrye.mutiny.Uni<Void>sdiffstore(K destination, K... keys) Execute the command SDIFFSTORE.io.smallrye.mutiny.Uni<Void>Execute the command SINTER.io.smallrye.mutiny.Uni<Void>sintercard(int limit, K... keys) Execute the command SINTERCARD.io.smallrye.mutiny.Uni<Void>sintercard(K... keys) Execute the command SINTERCARD.io.smallrye.mutiny.Uni<Void>sinterstore(K destination, K... keys) Execute the command SINTERSTORE.io.smallrye.mutiny.Uni<Void>Execute the command SISMEMBER.io.smallrye.mutiny.Uni<Void>Execute the command SMEMBERS.io.smallrye.mutiny.Uni<Void>smismember(K key, V... members) Execute the command SMISMEMBER.io.smallrye.mutiny.Uni<Void>Execute the command SMOVE.io.smallrye.mutiny.Uni<Void>Execute the command SPOP.io.smallrye.mutiny.Uni<Void>Execute the command SPOP.io.smallrye.mutiny.Uni<Void>srandmember(K key) Execute the command SRANDMEMBER.io.smallrye.mutiny.Uni<Void>srandmember(K key, int count) Execute the command SRANDMEMBER.io.smallrye.mutiny.Uni<Void>Execute the command SREM.io.smallrye.mutiny.Uni<Void>Execute the command SUNION.io.smallrye.mutiny.Uni<Void>sunionstore(K destination, K... keys) Execute the command SUNIONSTORE.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
Constructor Details
-
ReactiveTransactionalSetCommandsImpl
public ReactiveTransactionalSetCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveSetCommandsImpl<K, V> reactive, TransactionHolder tx)
-
-
Method Details
-
sadd
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SADD. Summary: Add one or more members to a set Group: set Requires Redis 1.0.0- Specified by:
saddin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the keyvalues- the values- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
scard
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SCARD. Summary: Get the number of members in a set Group: set Requires Redis 1.0.0- Specified by:
scardin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sdiff
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SDIFF. Summary: Subtract multiple sets Group: set Requires Redis 1.0.0- Specified by:
sdiffin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sdiffstore
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SDIFFSTORE. Summary: Subtract multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Specified by:
sdiffstorein interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
destination- the keykeys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sinter
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SINTER. Summary: Intersect multiple sets Group: set Requires Redis 1.0.0- Specified by:
sinterin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sintercard
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Specified by:
sintercardin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sintercard
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Specified by:
sintercardin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
limit- When provided with the optional LIMIT argument (which defaults to 0 and means unlimited), if the intersection cardinality reaches limit partway through the computation, the algorithm will exit and yield limit as the cardinality.keys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sinterstore
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SINTERSTORE. Summary: Intersect multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Specified by:
sinterstorein interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
destination- the keykeys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sismember
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SISMEMBER. Summary: Determine if a given value is a member of a set Group: set Requires Redis 1.0.0- Specified by:
sismemberin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the keymember- the member to check- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
smembers
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SMEMBERS. Summary: Get all the members in a set Group: set Requires Redis 1.0.0- Specified by:
smembersin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
smismember
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SMISMEMBER. Summary: Returns the membership associated with the given elements for a set Group: set Requires Redis 6.2.0- Specified by:
smismemberin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the keymembers- the members to check- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
smove
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SMOVE. Summary: Move a member from one set to another Group: set Requires Redis 1.0.0- Specified by:
smovein interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
source- the keydestination- the keymember- the member to move- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
spop
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
spopin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
spop
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
spopin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
srandmember
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
srandmemberin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
srandmember
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
srandmemberin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the keycount- the number of elements to pick- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
srem
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0- Specified by:
sremin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sunion
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SUNION. Summary: Add multiple sets Group: set Requires Redis 1.0.0- Specified by:
sunionin interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
keys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sunionstore
Description copied from interface:ReactiveTransactionalSetCommandsExecute the command SUNIONSTORE. Summary: Add multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Specified by:
sunionstorein interfaceReactiveTransactionalSetCommands<K,V> - Parameters:
destination- the destination keykeys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-