Class BlockingTransactionalKeyCommandsImpl<K>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
io.quarkus.redis.runtime.datasource.BlockingTransactionalKeyCommandsImpl<K>
- All Implemented Interfaces:
TransactionalKeyCommands<K>,TransactionalRedisCommands
public class BlockingTransactionalKeyCommandsImpl<K>
extends AbstractTransactionalRedisCommandGroup
implements TransactionalKeyCommands<K>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout -
Constructor Summary
ConstructorsConstructorDescriptionBlockingTransactionalKeyCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalKeyCommands<K> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidExecute the command COPY.voidExecute the command COPY.voidExecute the command DEL.voidExecute the command DUMP.voidExecute the command EXISTS.voidExecute the command EXISTS.voidExecute the command EXPIRE.voidexpire(K key, long seconds, ExpireArgs expireArgs) Execute the command EXPIRE.voidExecute the command EXPIRE.voidexpire(K key, Duration duration, ExpireArgs expireArgs) Execute the command EXPIRE.voidExecute the command EXPIREAT.voidexpireat(K key, long timestamp, ExpireArgs expireArgs) Execute the command EXPIREAT.voidExecute the command EXPIREAT.voidexpireat(K key, Instant timestamp, ExpireArgs expireArgs) Execute the command EXPIREAT.voidexpiretime(K key) Execute the command EXPIRETIME.voidExecute the command KEYS.voidExecute the command MOVE.voidExecute the command PERSIST.voidExecute the command PEXPIRE.voidpexpire(K key, long milliseconds, ExpireArgs expireArgs) Execute the command PEXPIRE.voidExecute the command PEXPIRE.voidpexpire(K key, Duration duration, ExpireArgs expireArgs) Execute the command PEXPIRE.voidExecute the command PEXPIREAT.voidpexpireat(K key, long timestamp, ExpireArgs expireArgs) Execute the command PEXPIREAT.voidExecute the command PEXPIREAT.voidpexpireat(K key, Instant timestamp, ExpireArgs expireArgs) Execute the command PEXPIREAT.voidpexpiretime(K key) Execute the command PEXPIRETIME.voidExecute the command PTTL.voidExecute the command RANDOMKEY.voidExecute the command RENAME.voidExecute the command RENAMENX.voidExecute the command TOUCH.voidExecute the command TTL.voidExecute the command TYPE.voidExecute the command UNLINK.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
getDataSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.TransactionalRedisCommands
getDataSource
-
Constructor Details
-
BlockingTransactionalKeyCommandsImpl
public BlockingTransactionalKeyCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalKeyCommands<K> reactive, Duration timeout)
-
-
Method Details
-
copy
Description copied from interface:TransactionalKeyCommandsExecute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Specified by:
copyin interfaceTransactionalKeyCommands<K>- Parameters:
source- the keydestination- the key
-
copy
Description copied from interface:TransactionalKeyCommandsExecute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Specified by:
copyin interfaceTransactionalKeyCommands<K>- Parameters:
source- the keydestination- the keycopyArgs- the additional arguments
-
del
Description copied from interface:TransactionalKeyCommandsExecute the command DEL. Summary: Delete one or multiple keys Group: generic Requires Redis 1.0.0- Specified by:
delin interfaceTransactionalKeyCommands<K>- Parameters:
keys- the keys.
-
dump
Description copied from interface:TransactionalKeyCommandsExecute 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 interfaceTransactionalKeyCommands<K>- Parameters:
key- the key
-
exists
Description copied from interface:TransactionalKeyCommandsExecute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Specified by:
existsin interfaceTransactionalKeyCommands<K>- Parameters:
key- the key to check
-
exists
Description copied from interface:TransactionalKeyCommandsExecute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Specified by:
existsin interfaceTransactionalKeyCommands<K>- Parameters:
keys- the keys to check
-
expire
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyseconds- the new TTLexpireArgs- theEXPIREcommand extra-arguments
-
expire
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTLexpireArgs- theEXPIREcommand extra-arguments
-
expire
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyseconds- the new TTL
-
expire
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIRE. Summary: Set a key's time to live in seconds Group: generic Requires Redis 1.0.0- Specified by:
expirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTL
-
expireat
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp
-
expireat
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp
-
expireat
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments
-
expireat
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 1.2.0- Specified by:
expireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments
-
expiretime
Description copied from interface:TransactionalKeyCommandsExecute the command EXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 7.0.0- Specified by:
expiretimein interfaceTransactionalKeyCommands<K>- Parameters:
key- the key
-
keys
Description copied from interface:TransactionalKeyCommandsExecute the command KEYS. Summary: Find all keys matching the given pattern Group: generic Requires Redis 1.0.0- Specified by:
keysin interfaceTransactionalKeyCommands<K>- Parameters:
pattern- the glob-style pattern
-
move
Description copied from interface:TransactionalKeyCommandsExecute the command MOVE. Summary: Move a key to another database Group: generic Requires Redis 1.0.0- Specified by:
movein interfaceTransactionalKeyCommands<K>- Parameters:
key- the key
-
persist
Description copied from interface:TransactionalKeyCommandsExecute the command PERSIST. Summary: Remove the expiration from a key Group: generic Requires Redis 2.2.0- Specified by:
persistin interfaceTransactionalKeyCommands<K>- Parameters:
key- the key
-
pexpire
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTLexpireArgs- thePEXPIREcommand extra-arguments
-
pexpire
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyms- the new TTL
-
pexpire
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keyduration- the new TTL
-
pexpire
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIRE. Summary: Set a key's time to live in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pexpirein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keymilliseconds- the new TTLexpireArgs- thePEXPIREcommand extra-arguments
-
pexpireat
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp
-
pexpireat
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestamp
-
pexpireat
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments
-
pexpireat
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIREAT. Summary: Set the expiration for a key as a UNIX timestamp Group: generic Requires Redis 2.6.0- Specified by:
pexpireatin interfaceTransactionalKeyCommands<K>- Parameters:
key- the keytimestamp- the timestampexpireArgs- theEXPIREATcommand extra-arguments
-
pexpiretime
Description copied from interface:TransactionalKeyCommandsExecute the command PEXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 2.6.0- Specified by:
pexpiretimein interfaceTransactionalKeyCommands<K>- Parameters:
key- the key
-
pttl
Description copied from interface:TransactionalKeyCommandsExecute the command PTTL. Summary: Get the time to live for a key in milliseconds Group: generic Requires Redis 2.6.0- Specified by:
pttlin interfaceTransactionalKeyCommands<K>- Parameters:
key- the key- Throws:
RedisKeyNotFoundException- if the key does not exist
-
randomkey
public void randomkey()Description copied from interface:TransactionalKeyCommandsExecute the command RANDOMKEY. Summary: Return a random key from the keyspace Group: generic Requires Redis 1.0.0- Specified by:
randomkeyin interfaceTransactionalKeyCommands<K>
-
rename
Description copied from interface:TransactionalKeyCommandsExecute the command RENAME. Summary: Rename a key Group: generic Requires Redis 1.0.0- Specified by:
renamein interfaceTransactionalKeyCommands<K>- Parameters:
key- the keynewkey- the new key
-
renamenx
Description copied from interface:TransactionalKeyCommandsExecute 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 interfaceTransactionalKeyCommands<K>- Parameters:
key- the keynewkey- the new key
-
touch
Description copied from interface:TransactionalKeyCommandsExecute 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 interfaceTransactionalKeyCommands<K>- Parameters:
keys- the keys
-
ttl
Description copied from interface:TransactionalKeyCommandsExecute the command TTL. Summary: Get the time to live for a key in seconds Group: generic Requires Redis 1.0.0- Specified by:
ttlin interfaceTransactionalKeyCommands<K>- Parameters:
key- the key- Throws:
RedisKeyNotFoundException- if the key does not exist
-
type
Description copied from interface:TransactionalKeyCommandsExecute the command TYPE. Summary: Determine the type stored at key Group: generic Requires Redis 1.0.0- Specified by:
typein interfaceTransactionalKeyCommands<K>- Parameters:
key- the key
-
unlink
Description copied from interface:TransactionalKeyCommandsExecute 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 interfaceTransactionalKeyCommands<K>- Parameters:
keys- the keys
-