Package io.quarkus.redis.datasource.keys
Interface TransactionalKeyCommands<K>
- All Superinterfaces:
TransactionalRedisCommands
- All Known Implementing Classes:
BlockingTransactionalKeyCommandsImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute the command COPY.void
Execute the command COPY.void
Execute the command DEL.void
Execute the command DUMP.void
Execute the command EXISTS.void
Execute the command EXISTS.void
Execute the command EXPIRE.void
expire
(K key, long seconds, ExpireArgs expireArgs) Execute the command EXPIRE.void
Execute the command EXPIRE.void
expire
(K key, Duration duration, ExpireArgs expireArgs) Execute the command EXPIRE.void
Execute the command EXPIREAT.void
expireat
(K key, long timestamp, ExpireArgs expireArgs) Execute the command EXPIREAT.void
Execute the command EXPIREAT.void
expireat
(K key, Instant timestamp, ExpireArgs expireArgs) Execute the command EXPIREAT.void
expiretime
(K key) Execute the command EXPIRETIME.void
Execute the command KEYS.void
Execute the command MOVE.void
Execute the command PERSIST.void
Execute the command PEXPIRE.void
pexpire
(K key, long milliseconds, ExpireArgs expireArgs) Execute the command PEXPIRE.void
Execute the command PEXPIRE.void
pexpire
(K key, Duration duration, ExpireArgs expireArgs) Execute the command PEXPIRE.void
Execute the command PEXPIREAT.void
pexpireat
(K key, long timestamp, ExpireArgs expireArgs) Execute the command PEXPIREAT.void
Execute the command PEXPIREAT.void
pexpireat
(K key, Instant timestamp, ExpireArgs expireArgs) Execute the command PEXPIREAT.void
pexpiretime
(K key) Execute the command PEXPIRETIME.void
Execute the command PTTL.void
Execute the command RANDOMKEY.void
Execute the command RENAME.void
Execute the command RENAMENX.void
Execute the command TOUCH.void
Execute the command TTL.void
Execute the command TYPE.void
Execute the command UNLINK.Methods inherited from interface io.quarkus.redis.datasource.TransactionalRedisCommands
getDataSource
-
Method Details
-
copy
Execute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Parameters:
source
- the keydestination
- the key
-
copy
Execute the command COPY. Summary: Copy a key Group: generic Requires Redis 6.2.0- Parameters:
source
- the keydestination
- the keycopyArgs
- the additional arguments
-
del
Execute the command DEL. Summary: Delete one or multiple keys Group: generic Requires Redis 1.0.0- Parameters:
keys
- the keys.
-
dump
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
-
exists
Execute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Parameters:
key
- the key to check
-
exists
Execute the command EXISTS. Summary: Determine if a key exists Group: generic Requires Redis 1.0.0- Parameters:
keys
- the keys to check
-
expire
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
-
expire
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
-
expire
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
-
expire
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
-
expireat
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
-
expireat
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
-
expireat
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
-
expireat
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
-
expiretime
Execute the command EXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 7.0.0- Parameters:
key
- the key- Throws:
RedisKeyNotFoundException
- if the key does not exist
-
keys
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
-
move
Execute the command MOVE. Summary: Move a key to another database Group: generic Requires Redis 1.0.0- Parameters:
key
- the key
-
persist
Execute the command PERSIST. Summary: Remove the expiration from a key Group: generic Requires Redis 2.2.0- Parameters:
key
- the key
-
pexpire
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
-
pexpire
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
-
pexpire
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
-
pexpire
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
-
pexpireat
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
-
pexpireat
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
-
pexpireat
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
-
pexpireat
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
-
pexpiretime
Execute the command PEXPIRETIME. Summary: Get the expiration Unix timestamp for a key Group: generic Requires Redis 2.6.0- Parameters:
key
- the key- Throws:
RedisKeyNotFoundException
- if the key does not exist
-
pttl
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- Throws:
RedisKeyNotFoundException
- if the key does not exist
-
randomkey
void randomkey()Execute the command RANDOMKEY. Summary: Return a random key from the keyspace Group: generic Requires Redis 1.0.0 -
rename
Execute the command RENAME. Summary: Rename a key Group: generic Requires Redis 1.0.0- Parameters:
key
- the keynewkey
- the new key
-
renamenx
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
-
touch
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
-
ttl
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- Throws:
RedisKeyNotFoundException
- if the key does not exist
-
type
Execute the command TYPE. Summary: Determine the type stored at key Group: generic Requires Redis 1.0.0- Parameters:
key
- the key
-
unlink
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
-