Class ReactiveTransactionalKeyCommandsImpl<K>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalKeyCommandsImpl<K>
- All Implemented Interfaces:
ReactiveTransactionalKeyCommands<K>,ReactiveTransactionalRedisCommands
public class ReactiveTransactionalKeyCommandsImpl<K>
extends AbstractTransactionalCommands
implements ReactiveTransactionalKeyCommands<K>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx -
Constructor Summary
ConstructorsConstructorDescriptionReactiveTransactionalKeyCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveKeyCommandsImpl<K> reactive, TransactionHolder tx) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>Execute the command COPY.io.smallrye.mutiny.Uni<Void>Execute the command COPY.io.smallrye.mutiny.Uni<Void>Execute the command DEL.io.smallrye.mutiny.Uni<Void>Execute the command DUMP.io.smallrye.mutiny.Uni<Void>Execute the command EXISTS.io.smallrye.mutiny.Uni<Void>Execute the command EXISTS.io.smallrye.mutiny.Uni<Void>Execute the command EXPIRE.io.smallrye.mutiny.Uni<Void>expire(K key, long seconds, ExpireArgs expireArgs) Execute the command EXPIRE.io.smallrye.mutiny.Uni<Void>Execute the command EXPIRE.io.smallrye.mutiny.Uni<Void>expire(K key, Duration duration, ExpireArgs expireArgs) Execute the command EXPIRE.io.smallrye.mutiny.Uni<Void>Execute the command EXPIREAT.io.smallrye.mutiny.Uni<Void>expireat(K key, long timestamp, ExpireArgs expireArgs) Execute the command EXPIREAT.io.smallrye.mutiny.Uni<Void>Execute the command EXPIREAT.io.smallrye.mutiny.Uni<Void>expireat(K key, Instant timestamp, ExpireArgs expireArgs) Execute the command EXPIREAT.io.smallrye.mutiny.Uni<Void>expiretime(K key) Execute the command EXPIRETIME.io.smallrye.mutiny.Uni<Void>Execute the command KEYS.io.smallrye.mutiny.Uni<Void>Execute the command MOVE.io.smallrye.mutiny.Uni<Void>Execute the command PERSIST.io.smallrye.mutiny.Uni<Void>Execute the command PEXPIRE.io.smallrye.mutiny.Uni<Void>pexpire(K key, long milliseconds, ExpireArgs expireArgs) Execute the command PEXPIRE.io.smallrye.mutiny.Uni<Void>Execute the command PEXPIRE.io.smallrye.mutiny.Uni<Void>pexpire(K key, Duration duration, ExpireArgs expireArgs) Execute the command PEXPIRE.io.smallrye.mutiny.Uni<Void>Execute the command PEXPIREAT.io.smallrye.mutiny.Uni<Void>pexpireat(K key, long timestamp, ExpireArgs expireArgs) Execute the command PEXPIREAT.io.smallrye.mutiny.Uni<Void>Execute the command PEXPIREAT.io.smallrye.mutiny.Uni<Void>pexpireat(K key, Instant timestamp, ExpireArgs expireArgs) Execute the command PEXPIREAT.io.smallrye.mutiny.Uni<Void>pexpiretime(K key) Execute the command PEXPIRETIME.io.smallrye.mutiny.Uni<Void>Execute the command PTTL.io.smallrye.mutiny.Uni<Void>Execute the command RANDOMKEY.io.smallrye.mutiny.Uni<Void>Execute the command RENAME.io.smallrye.mutiny.Uni<Void>Execute the command RENAMENX.io.smallrye.mutiny.Uni<Void>Execute the command TOUCH.io.smallrye.mutiny.Uni<Void>Execute the command TTL.io.smallrye.mutiny.Uni<Void>Execute the command TYPE.io.smallrye.mutiny.Uni<Void>Execute the command UNLINK.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
-
ReactiveTransactionalKeyCommandsImpl
public ReactiveTransactionalKeyCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveKeyCommandsImpl<K> reactive, TransactionHolder tx)
-
-
Method Details
-
copy
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Specified by:
copyin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
source- the keydestination- 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.
-
copy
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Specified by:
copyin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
source- the keydestination- the keycopyArgs- the additional arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
del
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command DEL. Summary: Delete one or multiple keys Group: generic Requires Redis 1.0.0- Specified by:
delin interfaceReactiveTransactionalKeyCommands<K>- 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.
-
dump
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command DUMP. Summary: Return a serialized version of the value stored at the specified key. Group: generic Requires Redis 2.6.0- Specified by:
dumpin interfaceReactiveTransactionalKeyCommands<K>- 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.
-
exists
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Specified by:
existsin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the key 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.
-
exists
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Specified by:
existsin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
keys- the keys 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.
-
expire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyseconds- the new TTLexpireArgs- theEXPIREcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTLexpireArgs- theEXPIREcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyseconds- the new TTL- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTL- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
expiretime
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command EXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 7.0.0- Specified by:
expiretimein interfaceReactiveTransactionalKeyCommands<K>- 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.
-
keys
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command KEYS. Summary: Find all keys matching the given pattern Group: generic Requires Redis 1.0.0- Specified by:
keysin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
pattern- the glob-style pattern- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
move
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command MOVE. Summary: Move a key to another database Group: generic Requires Redis 1.0.0- Specified by:
movein interfaceReactiveTransactionalKeyCommands<K>- 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.
-
persist
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PERSIST. Summary: Remove the expiration from a key Group: generic Requires Redis 2.2.0- Specified by:
persistin interfaceReactiveTransactionalKeyCommands<K>- 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.
-
pexpire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTLexpireArgs- thePEXPIREcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyms- the new TTL- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTL- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpire
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keymilliseconds- the new TTLexpireArgs- thePEXPIREcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpireat
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
pexpiretime
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PEXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 2.6.0- Specified by:
pexpiretimein interfaceReactiveTransactionalKeyCommands<K>- 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.
-
pttl
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command PTTL. Summary: Get the time to live for a key in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pttlin interfaceReactiveTransactionalKeyCommands<K>- 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.
-
randomkey
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command RANDOMKEY. Summary: Return a random key from the keyspace Group: generic Requires Redis 1.0.0- Specified by:
randomkeyin interfaceReactiveTransactionalKeyCommands<K>- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
rename
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command RENAME. Summary: Rename a key Group: generic Requires Redis 1.0.0- Specified by:
renamein interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keynewkey- the new key
-
renamenx
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command RENAMENX. Summary: Rename a key, only if the new key does not exist Group: generic Requires Redis 1.0.0- Specified by:
renamenxin interfaceReactiveTransactionalKeyCommands<K>- Parameters:
key- the keynewkey- the new 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.
-
touch
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command TOUCH. Summary: Alters the last access time of a key(s). Returns the number of existing keys specified. Group: generic Requires Redis 3.2.1- Specified by:
touchin interfaceReactiveTransactionalKeyCommands<K>- 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.
-
ttl
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command TTL. Summary: Get the time to live for a key in seconds Group: generic Requires Redis 1.0.0- Specified by:
ttlin interfaceReactiveTransactionalKeyCommands<K>- 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. - Throws:
RedisKeyNotFoundException- if the key does not exist
-
type
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command TYPE. Summary: Determine the type stored at key Group: generic Requires Redis 1.0.0- Specified by:
typein interfaceReactiveTransactionalKeyCommands<K>- 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.
-
unlink
Description copied from interface:ReactiveTransactionalKeyCommandsExecute the command UNLINK. Summary: Delete a key asynchronously in another thread. Otherwise, it is just asDEL, but non-blocking. Group: generic Requires Redis 4.0.0- Specified by:
unlinkin interfaceReactiveTransactionalKeyCommands<K>- 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.
-