Class BlockingTransactionalSetCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
io.quarkus.redis.runtime.datasource.BlockingTransactionalSetCommandsImpl<K,V>
- All Implemented Interfaces:
TransactionalSetCommands<K,
,V> TransactionalRedisCommands
public class BlockingTransactionalSetCommandsImpl<K,V>
extends AbstractTransactionalRedisCommandGroup
implements TransactionalSetCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
Constructor Summary
ConstructorDescriptionBlockingTransactionalSetCommandsImpl
(TransactionalRedisDataSource ds, ReactiveTransactionalSetCommands<K, V> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute the command SADD.void
Execute the command SCARD.void
Execute the command SDIFF.void
sdiffstore
(K destination, K... keys) Execute the command SDIFFSTORE.void
Execute the command SINTER.void
sintercard
(int limit, K... keys) Execute the command SINTERCARD.void
sintercard
(K... keys) Execute the command SINTERCARD.void
sinterstore
(K destination, K... keys) Execute the command SINTERSTORE.void
Execute the command SISMEMBER.void
Execute the command SMEMBERS.void
smismember
(K key, V... members) Execute the command SMISMEMBER.void
Execute the command SMOVE.void
Execute the command SPOP.void
Execute the command SPOP.void
srandmember
(K key) Execute the command SRANDMEMBER.void
srandmember
(K key, int count) Execute the command SRANDMEMBER.void
Execute the command SREM.void
Execute the command SUNION.void
sunionstore
(K destination, K... keys) Execute the command SUNIONSTORE.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
getDataSource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkus.redis.datasource.TransactionalRedisCommands
getDataSource
-
Constructor Details
-
BlockingTransactionalSetCommandsImpl
public BlockingTransactionalSetCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalSetCommands<K, V> reactive, Duration timeout)
-
-
Method Details
-
sadd
Description copied from interface:TransactionalSetCommands
Execute the command SADD. Summary: Add one or more members to a set Group: set Requires Redis 1.0.0- Specified by:
sadd
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the keyvalues
- the values
-
scard
Description copied from interface:TransactionalSetCommands
Execute the command SCARD. Summary: Get the number of members in a set Group: set Requires Redis 1.0.0- Specified by:
scard
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the key
-
sdiff
Description copied from interface:TransactionalSetCommands
Execute the command SDIFF. Summary: Subtract multiple sets Group: set Requires Redis 1.0.0- Specified by:
sdiff
in interfaceTransactionalSetCommands<K,
V> - Parameters:
keys
- the keys
-
sdiffstore
Description copied from interface:TransactionalSetCommands
Execute the command SDIFFSTORE. Summary: Subtract multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Specified by:
sdiffstore
in interfaceTransactionalSetCommands<K,
V> - Parameters:
destination
- the keykeys
- the keys
-
sinter
Description copied from interface:TransactionalSetCommands
Execute the command SINTER. Summary: Intersect multiple sets Group: set Requires Redis 1.0.0- Specified by:
sinter
in interfaceTransactionalSetCommands<K,
V> - Parameters:
keys
- the keys
-
sintercard
Description copied from interface:TransactionalSetCommands
Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Specified by:
sintercard
in interfaceTransactionalSetCommands<K,
V> - Parameters:
keys
- the keys
-
sintercard
Description copied from interface:TransactionalSetCommands
Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Specified by:
sintercard
in interfaceTransactionalSetCommands<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
-
sinterstore
Description copied from interface:TransactionalSetCommands
Execute the command SINTERSTORE. Summary: Intersect multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Specified by:
sinterstore
in interfaceTransactionalSetCommands<K,
V> - Parameters:
destination
- the keykeys
- the keys
-
sismember
Description copied from interface:TransactionalSetCommands
Execute the command SISMEMBER. Summary: Determine if a given value is a member of a set Group: set Requires Redis 1.0.0- Specified by:
sismember
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the keymember
- the member to check
-
smembers
Description copied from interface:TransactionalSetCommands
Execute the command SMEMBERS. Summary: Get all the members in a set Group: set Requires Redis 1.0.0- Specified by:
smembers
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the key
-
smismember
Description copied from interface:TransactionalSetCommands
Execute the command SMISMEMBER. Summary: Returns the membership associated with the given elements for a set Group: set Requires Redis 6.2.0- Specified by:
smismember
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the keymembers
- the members to check
-
smove
Description copied from interface:TransactionalSetCommands
Execute the command SMOVE. Summary: Move a member from one set to another Group: set Requires Redis 1.0.0- Specified by:
smove
in interfaceTransactionalSetCommands<K,
V> - Parameters:
source
- the keydestination
- the keymember
- the member to move
-
spop
Description copied from interface:TransactionalSetCommands
Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
spop
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the key
-
spop
Description copied from interface:TransactionalSetCommands
Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
spop
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the key
-
srandmember
Description copied from interface:TransactionalSetCommands
Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
srandmember
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the key
-
srandmember
Description copied from interface:TransactionalSetCommands
Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
srandmember
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the keycount
- the number of elements to pick
-
srem
Description copied from interface:TransactionalSetCommands
Execute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0- Specified by:
srem
in interfaceTransactionalSetCommands<K,
V> - Parameters:
key
- the key
-
sunion
Description copied from interface:TransactionalSetCommands
Execute the command SUNION. Summary: Add multiple sets Group: set Requires Redis 1.0.0- Specified by:
sunion
in interfaceTransactionalSetCommands<K,
V> - Parameters:
keys
- the keys
-
sunionstore
Description copied from interface:TransactionalSetCommands
Execute the command SUNIONSTORE. Summary: Add multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0- Specified by:
sunionstore
in interfaceTransactionalSetCommands<K,
V> - Parameters:
destination
- the destination keykeys
- the keys
-