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
Constructors Constructor Description BlockingTransactionalSetCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalSetCommands<K,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsadd(K key, V... values)Execute the command SADD.voidscard(K key)Execute the command SCARD.voidsdiff(K... keys)Execute the command SDIFF.voidsdiffstore(K destination, K... keys)Execute the command SDIFFSTORE.voidsinter(K... keys)Execute the command SINTER.voidsintercard(int limit, K... keys)Execute the command SINTERCARD.voidsintercard(K... keys)Execute the command SINTERCARD.voidsinterstore(K destination, K... keys)Execute the command SINTERSTORE.voidsismember(K key, V member)Execute the command SISMEMBER.voidsmembers(K key)Execute the command SMEMBERS.voidsmismember(K key, V... members)Execute the command SMISMEMBER.voidsmove(K source, K destination, V member)Execute the command SMOVE.voidspop(K key)Execute the command SPOP.voidspop(K key, int count)Execute the command SPOP.voidsrandmember(K key)Execute the command SRANDMEMBER.voidsrandmember(K key, int count)Execute the command SRANDMEMBER.voidsrem(K key, V... members)Execute the command SREM.voidsunion(K... keys)Execute the command SUNION.voidsunionstore(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 Detail
-
BlockingTransactionalSetCommandsImpl
public BlockingTransactionalSetCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalSetCommands<K,V> reactive, Duration timeout)
-
-
Method Detail
-
sadd
public void sadd(K key, V... values)
Description copied from interface:TransactionalSetCommandsExecute the command SADD. Summary: Add one or more members to a set Group: set Requires Redis 1.0.0- Specified by:
saddin interfaceTransactionalSetCommands<K,V>- Parameters:
key- the keyvalues- the values
-
scard
public void scard(K key)
Description copied from interface:TransactionalSetCommandsExecute the command SCARD. Summary: Get the number of members in a set Group: set Requires Redis 1.0.0- Specified by:
scardin interfaceTransactionalSetCommands<K,V>- Parameters:
key- the key
-
sdiff
public void sdiff(K... keys)
Description copied from interface:TransactionalSetCommandsExecute the command SDIFF. Summary: Subtract multiple sets Group: set Requires Redis 1.0.0- Specified by:
sdiffin interfaceTransactionalSetCommands<K,V>- Parameters:
keys- the keys
-
sdiffstore
public void sdiffstore(K destination, K... keys)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
destination- the keykeys- the keys
-
sinter
public void sinter(K... keys)
Description copied from interface:TransactionalSetCommandsExecute the command SINTER. Summary: Intersect multiple sets Group: set Requires Redis 1.0.0- Specified by:
sinterin interfaceTransactionalSetCommands<K,V>- Parameters:
keys- the keys
-
sintercard
public void sintercard(K... keys)
Description copied from interface:TransactionalSetCommandsExecute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Specified by:
sintercardin interfaceTransactionalSetCommands<K,V>- Parameters:
keys- the keys
-
sintercard
public void sintercard(int limit, K... keys)Description copied from interface:TransactionalSetCommandsExecute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0- Specified by:
sintercardin 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
public void sinterstore(K destination, K... keys)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
destination- the keykeys- the keys
-
sismember
public void sismember(K key, V member)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
key- the keymember- the member to check
-
smembers
public void smembers(K key)
Description copied from interface:TransactionalSetCommandsExecute the command SMEMBERS. Summary: Get all the members in a set Group: set Requires Redis 1.0.0- Specified by:
smembersin interfaceTransactionalSetCommands<K,V>- Parameters:
key- the key
-
smismember
public void smismember(K key, V... members)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
key- the keymembers- the members to check
-
smove
public void smove(K source, K destination, V member)
Description copied from interface:TransactionalSetCommandsExecute the command SMOVE. Summary: Move a member from one set to another Group: set Requires Redis 1.0.0- Specified by:
smovein interfaceTransactionalSetCommands<K,V>- Parameters:
source- the keydestination- the keymember- the member to move
-
spop
public void spop(K key)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
key- the key
-
spop
public void spop(K key, int count)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
key- the key
-
srandmember
public void srandmember(K key)
Description copied from interface:TransactionalSetCommandsExecute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
srandmemberin interfaceTransactionalSetCommands<K,V>- Parameters:
key- the key
-
srandmember
public void srandmember(K key, int count)
Description copied from interface:TransactionalSetCommandsExecute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0- Specified by:
srandmemberin interfaceTransactionalSetCommands<K,V>- Parameters:
key- the keycount- the number of elements to pick
-
srem
public void srem(K key, V... members)
Description copied from interface:TransactionalSetCommandsExecute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0- Specified by:
sremin interfaceTransactionalSetCommands<K,V>- Parameters:
key- the key
-
sunion
public void sunion(K... keys)
Description copied from interface:TransactionalSetCommandsExecute the command SUNION. Summary: Add multiple sets Group: set Requires Redis 1.0.0- Specified by:
sunionin interfaceTransactionalSetCommands<K,V>- Parameters:
keys- the keys
-
sunionstore
public void sunionstore(K destination, K... keys)
Description copied from interface:TransactionalSetCommandsExecute 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 interfaceTransactionalSetCommands<K,V>- Parameters:
destination- the destination keykeys- the keys
-
-