Package io.quarkus.redis.datasource.keys
Interface ReactiveTransactionalKeyCommands<K>
-
- All Superinterfaces:
ReactiveTransactionalRedisCommands
- All Known Implementing Classes:
ReactiveTransactionalKeyCommandsImpl
public interface ReactiveTransactionalKeyCommands<K> extends ReactiveTransactionalRedisCommands
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
copy(K source, K destination)
Execute the command COPY.io.smallrye.mutiny.Uni<Void>
copy(K source, K destination, CopyArgs copyArgs)
Execute the command COPY.io.smallrye.mutiny.Uni<Void>
del(K... keys)
Execute the command DEL.io.smallrye.mutiny.Uni<Void>
dump(K key)
Execute the command DUMP.io.smallrye.mutiny.Uni<Void>
exists(K key)
Execute the command EXISTS.io.smallrye.mutiny.Uni<Void>
exists(K... keys)
Execute the command EXISTS.io.smallrye.mutiny.Uni<Void>
expire(K key, long seconds)
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>
expire(K key, Duration duration)
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>
expireat(K key, long timestamp)
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>
expireat(K key, Instant timestamp)
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>
keys(String pattern)
Execute the command KEYS.io.smallrye.mutiny.Uni<Void>
move(K key, long db)
Execute the command MOVE.io.smallrye.mutiny.Uni<Void>
persist(K key)
Execute the command PERSIST.io.smallrye.mutiny.Uni<Void>
pexpire(K key, long ms)
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>
pexpire(K key, Duration duration)
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>
pexpireat(K key, long timestamp)
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>
pexpireat(K key, Instant timestamp)
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>
pttl(K key)
Execute the command PTTL.io.smallrye.mutiny.Uni<Void>
randomkey()
Execute the command RANDOMKEY.io.smallrye.mutiny.Uni<Void>
rename(K key, K newkey)
Execute the command RENAME.io.smallrye.mutiny.Uni<Void>
renamenx(K key, K newkey)
Execute the command RENAMENX.io.smallrye.mutiny.Uni<Void>
touch(K... keys)
Execute the command TOUCH.io.smallrye.mutiny.Uni<Void>
ttl(K key)
Execute the command TTL.io.smallrye.mutiny.Uni<Void>
type(K key)
Execute the command TYPE.io.smallrye.mutiny.Uni<Void>
unlink(K... keys)
Execute the command UNLINK.-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Method Detail
-
copy
io.smallrye.mutiny.Uni<Void> copy(K source, K destination)
Execute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Parameters:
source
- the keydestination
- 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.
-
copy
io.smallrye.mutiny.Uni<Void> copy(K source, K destination, CopyArgs copyArgs)
Execute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Parameters:
source
- the keydestination
- the keycopyArgs
- the additional arguments- 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.
-
del
io.smallrye.mutiny.Uni<Void> del(K... keys)
Execute the command DEL. Summary: Delete one or multiple keys Group: generic 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.
-
dump
io.smallrye.mutiny.Uni<Void> dump(K key)
Execute the command DUMP. Summary: Return a serialized version of the value stored at the specified key. Group: generic Requires Redis 2.6.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.
-
exists
io.smallrye.mutiny.Uni<Void> exists(K key)
Execute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Parameters:
key
- the key 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.
-
exists
io.smallrye.mutiny.Uni<Void> exists(K... keys)
Execute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Parameters:
keys
- the keys 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.
-
expire
io.smallrye.mutiny.Uni<Void> expire(K key, long seconds, ExpireArgs expireArgs)
Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Parameters:
key
- the keyseconds
- the new TTLexpireArgs
- theEXPIRE
command extra-arguments- 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.
-
expire
io.smallrye.mutiny.Uni<Void> expire(K key, Duration duration, ExpireArgs expireArgs)
Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Parameters:
key
- the keyduration
- the new TTLexpireArgs
- theEXPIRE
command extra-arguments- 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.
-
expire
io.smallrye.mutiny.Uni<Void> expire(K key, long seconds)
Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Parameters:
key
- the keyseconds
- the new TTL- 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.
-
expire
io.smallrye.mutiny.Uni<Void> expire(K key, Duration duration)
Execute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Parameters:
key
- the keyduration
- the new TTL- 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.
-
expireat
io.smallrye.mutiny.Uni<Void> expireat(K key, long timestamp)
Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Parameters:
key
- the keytimestamp
- the timestamp- 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.
-
expireat
io.smallrye.mutiny.Uni<Void> expireat(K key, Instant timestamp)
Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Parameters:
key
- the keytimestamp
- the timestamp- 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.
-
expireat
io.smallrye.mutiny.Uni<Void> expireat(K key, long timestamp, ExpireArgs expireArgs)
Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Parameters:
key
- the keytimestamp
- the timestampexpireArgs
- theEXPIREAT
command extra-arguments- 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.
-
expireat
io.smallrye.mutiny.Uni<Void> expireat(K key, Instant timestamp, ExpireArgs expireArgs)
Execute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Parameters:
key
- the keytimestamp
- the timestampexpireArgs
- theEXPIREAT
command extra-arguments- 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.
-
expiretime
io.smallrye.mutiny.Uni<Void> expiretime(K key)
Execute the command EXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 7.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. - Throws:
RedisKeyNotFoundException
- if the key does not exist
-
keys
io.smallrye.mutiny.Uni<Void> keys(String pattern)
Execute the command KEYS. Summary: Find all keys matching the given pattern Group: generic Requires Redis 1.0.0- Parameters:
pattern
- the glob-style pattern- 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.
-
move
io.smallrye.mutiny.Uni<Void> move(K key, long db)
Execute the command MOVE. Summary: Move a key to another database Group: generic 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.
-
persist
io.smallrye.mutiny.Uni<Void> persist(K key)
Execute the command PERSIST. Summary: Remove the expiration from a key Group: generic Requires Redis 2.2.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.
-
pexpire
io.smallrye.mutiny.Uni<Void> pexpire(K key, Duration duration, ExpireArgs expireArgs)
Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Parameters:
key
- the keyduration
- the new TTLexpireArgs
- thePEXPIRE
command extra-arguments- 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.
-
pexpire
io.smallrye.mutiny.Uni<Void> pexpire(K key, long ms)
Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Parameters:
key
- the keyms
- the new TTL- 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.
-
pexpire
io.smallrye.mutiny.Uni<Void> pexpire(K key, Duration duration)
Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Parameters:
key
- the keyduration
- the new TTL- 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.
-
pexpire
io.smallrye.mutiny.Uni<Void> pexpire(K key, long milliseconds, ExpireArgs expireArgs)
Execute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Parameters:
key
- the keymilliseconds
- the new TTLexpireArgs
- thePEXPIRE
command extra-arguments- 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.
-
pexpireat
io.smallrye.mutiny.Uni<Void> pexpireat(K key, long timestamp)
Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Parameters:
key
- the keytimestamp
- the timestamp- 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.
-
pexpireat
io.smallrye.mutiny.Uni<Void> pexpireat(K key, Instant timestamp)
Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Parameters:
key
- the keytimestamp
- the timestamp- 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.
-
pexpireat
io.smallrye.mutiny.Uni<Void> pexpireat(K key, long timestamp, ExpireArgs expireArgs)
Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Parameters:
key
- the keytimestamp
- the timestampexpireArgs
- theEXPIREAT
command extra-arguments- 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.
-
pexpireat
io.smallrye.mutiny.Uni<Void> pexpireat(K key, Instant timestamp, ExpireArgs expireArgs)
Execute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Parameters:
key
- the keytimestamp
- the timestampexpireArgs
- theEXPIREAT
command extra-arguments- 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.
-
pexpiretime
io.smallrye.mutiny.Uni<Void> pexpiretime(K key)
Execute the command PEXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 2.6.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. - Throws:
RedisKeyNotFoundException
- if the key does not exist
-
pttl
io.smallrye.mutiny.Uni<Void> pttl(K key)
Execute the command PTTL. Summary: Get the time to live for a key in milliseconds Group: generic Requires Redis 2.6.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.
-
randomkey
io.smallrye.mutiny.Uni<Void> randomkey()
Execute the command RANDOMKEY. Summary: Return a random key from the keyspace Group: generic Requires Redis 1.0.0- 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.
-
rename
io.smallrye.mutiny.Uni<Void> rename(K key, K newkey)
Execute the command RENAME. Summary: Rename a key Group: generic Requires Redis 1.0.0- Parameters:
key
- the keynewkey
- the new key
-
renamenx
io.smallrye.mutiny.Uni<Void> renamenx(K key, K newkey)
Execute the command RENAMENX. Summary: Rename a key, only if the new key does not exist Group: generic Requires Redis 1.0.0- Parameters:
key
- the keynewkey
- the new 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.
-
touch
io.smallrye.mutiny.Uni<Void> touch(K... keys)
Execute 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- 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.
-
ttl
io.smallrye.mutiny.Uni<Void> ttl(K key) throws RedisKeyNotFoundException
Execute the command TTL. Summary: Get the time to live for a key in seconds Group: generic 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. - Throws:
RedisKeyNotFoundException
- if the key does not exist
-
type
io.smallrye.mutiny.Uni<Void> type(K key)
Execute the command TYPE. Summary: Determine the type stored at key Group: generic 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.
-
unlink
io.smallrye.mutiny.Uni<Void> unlink(K... keys)
Execute 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- 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.
-
-