Package io.quarkus.redis.datasource.set
Interface TransactionalSetCommands<K,V>
- All Superinterfaces:
TransactionalRedisCommands
- All Known Implementing Classes:
BlockingTransactionalSetCommandsImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecute the command SADD.voidExecute the command SCARD.voidExecute the command SDIFF.voidsdiffstore(K destination, K... keys) Execute the command SDIFFSTORE.voidExecute 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.voidExecute the command SISMEMBER.voidExecute the command SMEMBERS.voidsmismember(K key, V... members) Execute the command SMISMEMBER.voidExecute the command SMOVE.voidExecute the command SPOP.voidExecute the command SPOP.voidsrandmember(K key) Execute the command SRANDMEMBER.voidsrandmember(K key, int count) Execute the command SRANDMEMBER.voidExecute the command SREM.voidExecute the command SUNION.voidsunionstore(K destination, K... keys) Execute the command SUNIONSTORE.Methods inherited from interface io.quarkus.redis.datasource.TransactionalRedisCommands
getDataSource
-
Method Details
-
sadd
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
-
scard
Execute the command SCARD. Summary: Get the number of members in a set Group: set Requires Redis 1.0.0- Parameters:
key- the key
-
sdiff
Execute the command SDIFF. Summary: Subtract multiple sets Group: set Requires Redis 1.0.0- Parameters:
keys- the keys
-
sdiffstore
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
-
sinter
Execute the command SINTER. Summary: Intersect multiple sets Group: set Requires Redis 1.0.0- Parameters:
keys- the keys
-
sintercard
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
-
sintercard
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
-
sinterstore
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
-
sismember
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
-
smembers
Execute the command SMEMBERS. Summary: Get all the members in a set Group: set Requires Redis 1.0.0- Parameters:
key- the key
-
smismember
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
-
smove
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
-
spop
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
-
spop
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
-
srandmember
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
-
srandmember
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
-
srem
Execute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0- Parameters:
key- the key
-
sunion
Execute the command SUNION. Summary: Add multiple sets Group: set Requires Redis 1.0.0- Parameters:
keys- the keys
-
sunionstore
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
-