Class BlockingTransactionalStringCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
io.quarkus.redis.runtime.datasource.BlockingTransactionalStringCommandsImpl<K,V>
- All Implemented Interfaces:
TransactionalStringCommands<K,
,V> TransactionalRedisCommands
,TransactionalValueCommands<K,
V>
public class BlockingTransactionalStringCommandsImpl<K,V>
extends AbstractTransactionalRedisCommandGroup
implements TransactionalStringCommands<K,V>, TransactionalValueCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
Constructor Summary
ConstructorDescriptionBlockingTransactionalStringCommandsImpl
(TransactionalRedisDataSource ds, ReactiveTransactionalValueCommands<K, V> reactive, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Execute the command APPEND.void
Execute the command DECR.void
Execute the command DECRBY.void
Execute the command GET.void
Execute the command GETDEL.void
Execute the command GETEX.void
Execute the command GETEX.void
Execute the command GETRANGE.void
Execute the command GETSET.void
Execute the command INCR.void
Execute the command INCRBY.void
incrbyfloat
(K key, double amount) Execute the command INCRBYFLOAT.void
Execute the command LCS.void
Execute the command LCS.void
Execute the command MGET.void
Execute the command MSET.void
Execute the command MSETNX.void
Execute the command PSETEX.void
Execute the command SET.void
Execute the command SET.void
Execute the command SET.void
Execute the command SETEX.void
Execute the command SET.void
Execute the command SET.void
Execute the command SET.void
Execute the command SETNX.void
Execute the command SETRANGE.void
Execute the command STRLEN.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 Details
-
BlockingTransactionalStringCommandsImpl
public BlockingTransactionalStringCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalValueCommands<K, V> reactive, Duration timeout)
-
-
Method Details
-
append
Description copied from interface:TransactionalStringCommands
Execute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0- Specified by:
append
in interfaceTransactionalStringCommands<K,
V> - Specified by:
append
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
decr
Description copied from interface:TransactionalStringCommands
Execute the command DECR. Summary: Decrement the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
decr
in interfaceTransactionalStringCommands<K,
V> - Specified by:
decr
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the key
-
decrby
Description copied from interface:TransactionalStringCommands
Execute the command DECRBY. Summary: Decrement the integer value of a key by the given number Group: string Requires Redis 1.0.0- Specified by:
decrby
in interfaceTransactionalStringCommands<K,
V> - Specified by:
decrby
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyamount
- the amount, can be negative
-
get
Description copied from interface:TransactionalStringCommands
Execute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0- Specified by:
get
in interfaceTransactionalStringCommands<K,
V> - Specified by:
get
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the key
-
getdel
Description copied from interface:TransactionalStringCommands
Execute the command GETDEL. Summary: Get the value of a key and delete the key Group: string Requires Redis 6.2.0- Specified by:
getdel
in interfaceTransactionalStringCommands<K,
V> - Specified by:
getdel
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the key
-
getex
Description copied from interface:TransactionalStringCommands
Execute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0- Specified by:
getex
in interfaceTransactionalStringCommands<K,
V> - Parameters:
key
- the keyargs
- the getex command extra-arguments
-
getex
Description copied from interface:TransactionalValueCommands
Execute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0- Specified by:
getex
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyargs
- the getex command extra-arguments
-
getrange
Description copied from interface:TransactionalStringCommands
Execute the command GETRANGE. Summary: Get a substring of the string stored at a key Group: string Requires Redis 2.4.0- Specified by:
getrange
in interfaceTransactionalStringCommands<K,
V> - Specified by:
getrange
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keystart
- the start offsetend
- the end offset
-
getset
Description copied from interface:TransactionalStringCommands
Execute the command GETSET. Summary: Set the string value of a key and return its old value Group: string Requires Redis 1.0.0- Specified by:
getset
in interfaceTransactionalStringCommands<K,
V> - Specified by:
getset
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
incr
Description copied from interface:TransactionalStringCommands
Execute the command INCR. Summary: Increment the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
incr
in interfaceTransactionalStringCommands<K,
V> - Specified by:
incr
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the key
-
incrby
Description copied from interface:TransactionalStringCommands
Execute the command INCRBY. Summary: Increment the integer value of a key by the given amount Group: string Requires Redis 1.0.0- Specified by:
incrby
in interfaceTransactionalStringCommands<K,
V> - Specified by:
incrby
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyamount
- the amount, can be negative
-
incrbyfloat
Description copied from interface:TransactionalStringCommands
Execute the command INCRBYFLOAT. Summary: Increment the float value of a key by the given amount Group: string Requires Redis 2.6.0- Specified by:
incrbyfloat
in interfaceTransactionalStringCommands<K,
V> - Specified by:
incrbyfloat
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyamount
- the amount, can be negative
-
lcs
Description copied from interface:TransactionalStringCommands
Execute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0- Specified by:
lcs
in interfaceTransactionalStringCommands<K,
V> - Specified by:
lcs
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key1
- the keykey2
- the key
-
lcsLength
Description copied from interface:TransactionalStringCommands
Execute the command LCS. Summary: Find longest common substring and return the length (usingLEN
) Group: string Requires Redis 7.0.0- Specified by:
lcsLength
in interfaceTransactionalStringCommands<K,
V> - Specified by:
lcsLength
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key1
- the keykey2
- the key
-
mget
Description copied from interface:TransactionalStringCommands
Execute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0- Specified by:
mget
in interfaceTransactionalStringCommands<K,
V> - Specified by:
mget
in interfaceTransactionalValueCommands<K,
V> - Parameters:
keys
- the keys
-
mset
Description copied from interface:TransactionalStringCommands
Execute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1- Specified by:
mset
in interfaceTransactionalStringCommands<K,
V> - Specified by:
mset
in interfaceTransactionalValueCommands<K,
V> - Parameters:
map
- the key/value map containing the items to store
-
msetnx
Description copied from interface:TransactionalStringCommands
Execute the command MSETNX. Summary: Set multiple keys to multiple values, only if none of the keys exist Group: string Requires Redis 1.0.1- Specified by:
msetnx
in interfaceTransactionalStringCommands<K,
V> - Specified by:
msetnx
in interfaceTransactionalValueCommands<K,
V> - Parameters:
map
- the key/value map containing the items to store
-
psetex
Description copied from interface:TransactionalStringCommands
Execute the command PSETEX. Summary: Set the value and expiration in milliseconds of a key Group: string Requires Redis 2.6.0- Specified by:
psetex
in interfaceTransactionalStringCommands<K,
V> - Specified by:
psetex
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keymilliseconds
- the duration in msvalue
- the value
-
set
Description copied from interface:TransactionalStringCommands
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
set
in interfaceTransactionalStringCommands<K,
V> - Specified by:
set
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
set
Description copied from interface:TransactionalStringCommands
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
set
in interfaceTransactionalStringCommands<K,
V> - Parameters:
key
- the keyvalue
- the valuesetArgs
- the set command extra-arguments
-
set
Description copied from interface:TransactionalValueCommands
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
set
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the valuesetArgs
- the set command extra-arguments
-
setGet
Description copied from interface:TransactionalStringCommands
Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0- Specified by:
setGet
in interfaceTransactionalStringCommands<K,
V> - Specified by:
setGet
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
setGet
Description copied from interface:TransactionalStringCommands
Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0- Specified by:
setGet
in interfaceTransactionalStringCommands<K,
V> - Parameters:
key
- the keyvalue
- the valuesetArgs
- the set command extra-arguments
-
setGet
Description copied from interface:TransactionalValueCommands
Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0- Specified by:
setGet
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the valuesetArgs
- the set command extra-arguments
-
setex
Description copied from interface:TransactionalStringCommands
Execute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0- Specified by:
setex
in interfaceTransactionalStringCommands<K,
V> - Specified by:
setex
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
setnx
Description copied from interface:TransactionalStringCommands
Execute the command SETNX. Summary: Set the value of a key, only if the key does not exist Group: string Requires Redis 1.0.0- Specified by:
setnx
in interfaceTransactionalStringCommands<K,
V> - Specified by:
setnx
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
setrange
Description copied from interface:TransactionalStringCommands
Execute the command SETRANGE. Summary: Overwrite part of a string at key starting at the specified offset Group: string Requires Redis 2.2.0- Specified by:
setrange
in interfaceTransactionalStringCommands<K,
V> - Specified by:
setrange
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value
-
strlen
Description copied from interface:TransactionalStringCommands
Execute the command STRLEN. Summary: Get the length of the value stored in a key Group: string Requires Redis 2.2.0- Specified by:
strlen
in interfaceTransactionalStringCommands<K,
V> - Specified by:
strlen
in interfaceTransactionalValueCommands<K,
V> - Parameters:
key
- the key
-