Package io.quarkus.redis.datasource.set
Interface ReactiveTransactionalSetCommands<K,V>
-
- All Superinterfaces:
ReactiveTransactionalRedisCommands
- All Known Implementing Classes:
ReactiveTransactionalSetCommandsImpl
public interface ReactiveTransactionalSetCommands<K,V> extends ReactiveTransactionalRedisCommands
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
sadd(K key, V... values)
Execute the command SADD.io.smallrye.mutiny.Uni<Void>
scard(K key)
Execute the command SCARD.io.smallrye.mutiny.Uni<Void>
sdiff(K... keys)
Execute the command SDIFF.io.smallrye.mutiny.Uni<Void>
sdiffstore(K destination, K... keys)
Execute the command SDIFFSTORE.io.smallrye.mutiny.Uni<Void>
sinter(K... keys)
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>
sismember(K key, V member)
Execute the command SISMEMBER.io.smallrye.mutiny.Uni<Void>
smembers(K key)
Execute the command SMEMBERS.io.smallrye.mutiny.Uni<Void>
smismember(K key, V... members)
Execute the command SMISMEMBER.io.smallrye.mutiny.Uni<Void>
smove(K source, K destination, V member)
Execute the command SMOVE.io.smallrye.mutiny.Uni<Void>
spop(K key)
Execute the command SPOP.io.smallrye.mutiny.Uni<Void>
spop(K key, int count)
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>
srem(K key, V... members)
Execute the command SREM.io.smallrye.mutiny.Uni<Void>
sunion(K... keys)
Execute the command SUNION.io.smallrye.mutiny.Uni<Void>
sunionstore(K destination, K... keys)
Execute the command SUNIONSTORE.-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Method Detail
-
sadd
io.smallrye.mutiny.Uni<Void> sadd(K key, V... values)
Execute the command SADD. Summary: Add one or more members to a set Group: set Requires Redis 1.0.0- Parameters:
key
- the keyvalues
- the values- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
scard
io.smallrye.mutiny.Uni<Void> scard(K key)
Execute the command SCARD. Summary: Get the number of members in a set Group: set Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sdiff
io.smallrye.mutiny.Uni<Void> sdiff(K... keys)
Execute the command SDIFF. Summary: Subtract multiple sets Group: set Requires Redis 1.0.0- Parameters:
keys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sdiffstore
io.smallrye.mutiny.Uni<Void> sdiffstore(K destination, K... keys)
Execute the command SDIFFSTORE. Summary: Subtract multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Parameters:
destination
- the keykeys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sinter
io.smallrye.mutiny.Uni<Void> sinter(K... keys)
Execute the command SINTER. Summary: Intersect multiple sets Group: set Requires Redis 1.0.0- Parameters:
keys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sintercard
io.smallrye.mutiny.Uni<Void> sintercard(K... keys)
Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Parameters:
keys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sintercard
io.smallrye.mutiny.Uni<Void> sintercard(int limit, K... keys)
Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- 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
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sinterstore
io.smallrye.mutiny.Uni<Void> sinterstore(K destination, K... keys)
Execute the command SINTERSTORE. Summary: Intersect multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Parameters:
destination
- the keykeys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sismember
io.smallrye.mutiny.Uni<Void> sismember(K key, V member)
Execute the command SISMEMBER. Summary: Determine if a given value is a member of a set Group: set Requires Redis 1.0.0- Parameters:
key
- the keymember
- the member to check- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
smembers
io.smallrye.mutiny.Uni<Void> smembers(K key)
Execute the command SMEMBERS. Summary: Get all the members in a set Group: set Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
smismember
io.smallrye.mutiny.Uni<Void> smismember(K key, V... members)
Execute the command SMISMEMBER. Summary: Returns the membership associated with the given elements for a set Group: set Requires Redis 6.2.0- Parameters:
key
- the keymembers
- the members to check- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
smove
io.smallrye.mutiny.Uni<Void> smove(K source, K destination, V member)
Execute the command SMOVE. Summary: Move a member from one set to another Group: set Requires Redis 1.0.0- Parameters:
source
- the keydestination
- the keymember
- the member to move- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
spop
io.smallrye.mutiny.Uni<Void> spop(K key)
Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
spop
io.smallrye.mutiny.Uni<Void> spop(K key, int count)
Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
srandmember
io.smallrye.mutiny.Uni<Void> srandmember(K key)
Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
srandmember
io.smallrye.mutiny.Uni<Void> srandmember(K key, int count)
Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Parameters:
key
- the keycount
- the number of elements to pick- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
srem
io.smallrye.mutiny.Uni<Void> srem(K key, V... members)
Execute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sunion
io.smallrye.mutiny.Uni<Void> sunion(K... keys)
Execute the command SUNION. Summary: Add multiple sets Group: set Requires Redis 1.0.0- Parameters:
keys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
sunionstore
io.smallrye.mutiny.Uni<Void> sunionstore(K destination, K... keys)
Execute the command SUNIONSTORE. Summary: Add multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Parameters:
destination
- the destination keykeys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
-