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
Constructors Constructor Description BlockingTransactionalKeyCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalKeyCommands<K> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(K source, K destination)Execute the command COPY.voidcopy(K source, K destination, CopyArgs copyArgs)Execute the command COPY.voiddel(K... keys)Execute the command DEL.voiddump(K key)Execute the command DUMP.voidexists(K key)Execute the command EXISTS.voidexists(K... keys)Execute the command EXISTS.voidexpire(K key, long seconds)Execute the command EXPIRE.voidexpire(K key, long seconds, ExpireArgs expireArgs)Execute the command EXPIRE.voidexpire(K key, Duration duration)Execute the command EXPIRE.voidexpire(K key, Duration duration, ExpireArgs expireArgs)Execute the command EXPIRE.voidexpireat(K key, long timestamp)Execute the command EXPIREAT.voidexpireat(K key, long timestamp, ExpireArgs expireArgs)Execute the command EXPIREAT.voidexpireat(K key, Instant timestamp)Execute the command EXPIREAT.voidexpireat(K key, Instant timestamp, ExpireArgs expireArgs)Execute the command EXPIREAT.voidexpiretime(K key)Execute the command EXPIRETIME.voidkeys(String pattern)Execute the command KEYS.voidmove(K key, long db)Execute the command MOVE.voidpersist(K key)Execute the command PERSIST.voidpexpire(K key, long ms)Execute the command PEXPIRE.voidpexpire(K key, long milliseconds, ExpireArgs expireArgs)Execute the command PEXPIRE.voidpexpire(K key, Duration duration)Execute the command PEXPIRE.voidpexpire(K key, Duration duration, ExpireArgs expireArgs)Execute the command PEXPIRE.voidpexpireat(K key, long timestamp)Execute the command PEXPIREAT.voidpexpireat(K key, long timestamp, ExpireArgs expireArgs)Execute the command PEXPIREAT.voidpexpireat(K key, Instant timestamp)Execute the command PEXPIREAT.voidpexpireat(K key, Instant timestamp, ExpireArgs expireArgs)Execute the command PEXPIREAT.voidpexpiretime(K key)Execute the command PEXPIRETIME.voidpttl(K key)Execute the command PTTL.voidrandomkey()Execute the command RANDOMKEY.voidrename(K key, K newkey)Execute the command RENAME.voidrenamenx(K key, K newkey)Execute the command RENAMENX.voidtouch(K... keys)Execute the command TOUCH.voidttl(K key)Execute the command TTL.voidtype(K key)Execute the command TYPE.voidunlink(K... keys)Execute the command UNLINK.-
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
-
BlockingTransactionalKeyCommandsImpl
public BlockingTransactionalKeyCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalKeyCommands<K> reactive, Duration timeout)
-
-
Method Detail
-
copy
public void copy(K source, K destination)
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
public void copy(K source, K destination, CopyArgs copyArgs)
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
public void del(K... keys)
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
public void dump(K key)
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
public void exists(K key)
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
public void exists(K... keys)
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
public void expire(K key, long seconds, ExpireArgs expireArgs)
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
public void expire(K key, Duration duration, ExpireArgs expireArgs)
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
public void expire(K key, long seconds)
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
public void expire(K key, Duration duration)
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
public void expireat(K key, long timestamp)
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
public void expireat(K key, Instant timestamp)
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
public void expireat(K key, long timestamp, ExpireArgs expireArgs)
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
public void expireat(K key, Instant timestamp, ExpireArgs expireArgs)
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
public void expiretime(K key)
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
public void keys(String pattern)
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
public void move(K key, long db)
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
public void persist(K key)
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
public void pexpire(K key, Duration duration, ExpireArgs expireArgs)
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
public void pexpire(K key, long ms)
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
public void pexpire(K key, Duration duration)
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
public void pexpire(K key, long milliseconds, ExpireArgs expireArgs)
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
public void pexpireat(K key, long timestamp)
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
public void pexpireat(K key, Instant timestamp)
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
public void pexpireat(K key, long timestamp, ExpireArgs expireArgs)
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
public void pexpireat(K key, Instant timestamp, ExpireArgs expireArgs)
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
public void pexpiretime(K key)
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
public void pttl(K key) throws RedisKeyNotFoundException
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
public void rename(K key, K newkey)
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
public void renamenx(K key, K newkey)
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
public void touch(K... keys)
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
public void ttl(K key) throws RedisKeyNotFoundException
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
public void type(K key)
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
public void unlink(K... keys)
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
-
-