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
Constructors Constructor Description BlockingTransactionalStringCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalValueCommands<K,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(K key, V value)Execute the command APPEND.voiddecr(K key)Execute the command DECR.voiddecrby(K key, long amount)Execute the command DECRBY.voidget(K key)Execute the command GET.voidgetdel(K key)Execute the command GETDEL.voidgetex(K key, GetExArgs args)Execute the command GETEX.voidgetex(K key, GetExArgs args)Execute the command GETEX.voidgetrange(K key, long start, long end)Execute the command GETRANGE.voidgetset(K key, V value)Execute the command GETSET.voidincr(K key)Execute the command INCR.voidincrby(K key, long amount)Execute the command INCRBY.voidincrbyfloat(K key, double amount)Execute the command INCRBYFLOAT.voidlcs(K key1, K key2)Execute the command LCS.voidlcsLength(K key1, K key2)Execute the command LCS.voidmget(K... keys)Execute the command MGET.voidmset(Map<K,V> map)Execute the command MSET.voidmsetnx(Map<K,V> map)Execute the command MSETNX.voidpsetex(K key, long milliseconds, V value)Execute the command PSETEX.voidset(K key, V value)Execute the command SET.voidset(K key, V value, SetArgs setArgs)Execute the command SET.voidset(K key, V value, SetArgs setArgs)Execute the command SET.voidsetex(K key, long seconds, V value)Execute the command SETEX.voidsetGet(K key, V value)Execute the command SET.voidsetGet(K key, V value, SetArgs setArgs)Execute the command SET.voidsetGet(K key, V value, SetArgs setArgs)Execute the command SET.voidsetnx(K key, V value)Execute the command SETNX.voidsetrange(K key, long offset, V value)Execute the command SETRANGE.voidstrlen(K key)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 Detail
-
BlockingTransactionalStringCommandsImpl
public BlockingTransactionalStringCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalValueCommands<K,V> reactive, Duration timeout)
-
-
Method Detail
-
append
public void append(K key, V value)
Description copied from interface:TransactionalStringCommandsExecute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0- Specified by:
appendin interfaceTransactionalStringCommands<K,V>- Specified by:
appendin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
decr
public void decr(K key)
Description copied from interface:TransactionalStringCommandsExecute the command DECR. Summary: Decrement the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
decrin interfaceTransactionalStringCommands<K,V>- Specified by:
decrin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the key
-
decrby
public void decrby(K key, long amount)
Description copied from interface:TransactionalStringCommandsExecute the command DECRBY. Summary: Decrement the integer value of a key by the given number Group: string Requires Redis 1.0.0- Specified by:
decrbyin interfaceTransactionalStringCommands<K,V>- Specified by:
decrbyin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyamount- the amount, can be negative
-
get
public void get(K key)
Description copied from interface:TransactionalStringCommandsExecute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0- Specified by:
getin interfaceTransactionalStringCommands<K,V>- Specified by:
getin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the key
-
getdel
public void getdel(K key)
Description copied from interface:TransactionalStringCommandsExecute the command GETDEL. Summary: Get the value of a key and delete the key Group: string Requires Redis 6.2.0- Specified by:
getdelin interfaceTransactionalStringCommands<K,V>- Specified by:
getdelin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the key
-
getex
public void getex(K key, GetExArgs args)
Description copied from interface:TransactionalStringCommandsExecute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0- Specified by:
getexin interfaceTransactionalStringCommands<K,V>- Parameters:
key- the keyargs- the getex command extra-arguments
-
getex
public void getex(K key, GetExArgs args)
Description copied from interface:TransactionalValueCommandsExecute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0- Specified by:
getexin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyargs- the getex command extra-arguments
-
getrange
public void getrange(K key, long start, long end)
Description copied from interface:TransactionalStringCommandsExecute the command GETRANGE. Summary: Get a substring of the string stored at a key Group: string Requires Redis 2.4.0- Specified by:
getrangein interfaceTransactionalStringCommands<K,V>- Specified by:
getrangein interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keystart- the start offsetend- the end offset
-
getset
public void getset(K key, V value)
Description copied from interface:TransactionalStringCommandsExecute 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:
getsetin interfaceTransactionalStringCommands<K,V>- Specified by:
getsetin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
incr
public void incr(K key)
Description copied from interface:TransactionalStringCommandsExecute the command INCR. Summary: Increment the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
incrin interfaceTransactionalStringCommands<K,V>- Specified by:
incrin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the key
-
incrby
public void incrby(K key, long amount)
Description copied from interface:TransactionalStringCommandsExecute the command INCRBY. Summary: Increment the integer value of a key by the given amount Group: string Requires Redis 1.0.0- Specified by:
incrbyin interfaceTransactionalStringCommands<K,V>- Specified by:
incrbyin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyamount- the amount, can be negative
-
incrbyfloat
public void incrbyfloat(K key, double amount)
Description copied from interface:TransactionalStringCommandsExecute the command INCRBYFLOAT. Summary: Increment the float value of a key by the given amount Group: string Requires Redis 2.6.0- Specified by:
incrbyfloatin interfaceTransactionalStringCommands<K,V>- Specified by:
incrbyfloatin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyamount- the amount, can be negative
-
lcs
public void lcs(K key1, K key2)
Description copied from interface:TransactionalStringCommandsExecute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0- Specified by:
lcsin interfaceTransactionalStringCommands<K,V>- Specified by:
lcsin interfaceTransactionalValueCommands<K,V>- Parameters:
key1- the keykey2- the key
-
lcsLength
public void lcsLength(K key1, K key2)
Description copied from interface:TransactionalStringCommandsExecute the command LCS. Summary: Find longest common substring and return the length (usingLEN) Group: string Requires Redis 7.0.0- Specified by:
lcsLengthin interfaceTransactionalStringCommands<K,V>- Specified by:
lcsLengthin interfaceTransactionalValueCommands<K,V>- Parameters:
key1- the keykey2- the key
-
mget
public void mget(K... keys)
Description copied from interface:TransactionalStringCommandsExecute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0- Specified by:
mgetin interfaceTransactionalStringCommands<K,V>- Specified by:
mgetin interfaceTransactionalValueCommands<K,V>- Parameters:
keys- the keys
-
mset
public void mset(Map<K,V> map)
Description copied from interface:TransactionalStringCommandsExecute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1- Specified by:
msetin interfaceTransactionalStringCommands<K,V>- Specified by:
msetin interfaceTransactionalValueCommands<K,V>- Parameters:
map- the key/value map containing the items to store
-
msetnx
public void msetnx(Map<K,V> map)
Description copied from interface:TransactionalStringCommandsExecute 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:
msetnxin interfaceTransactionalStringCommands<K,V>- Specified by:
msetnxin interfaceTransactionalValueCommands<K,V>- Parameters:
map- the key/value map containing the items to store
-
psetex
public void psetex(K key, long milliseconds, V value)
Description copied from interface:TransactionalStringCommandsExecute the command PSETEX. Summary: Set the value and expiration in milliseconds of a key Group: string Requires Redis 2.6.0- Specified by:
psetexin interfaceTransactionalStringCommands<K,V>- Specified by:
psetexin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keymilliseconds- the duration in msvalue- the value
-
set
public void set(K key, V value)
Description copied from interface:TransactionalStringCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceTransactionalStringCommands<K,V>- Specified by:
setin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
set
public void set(K key, V value, SetArgs setArgs)
Description copied from interface:TransactionalStringCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceTransactionalStringCommands<K,V>- Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments
-
set
public void set(K key, V value, SetArgs setArgs)
Description copied from interface:TransactionalValueCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments
-
setGet
public void setGet(K key, V value)
Description copied from interface:TransactionalStringCommandsExecute 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:
setGetin interfaceTransactionalStringCommands<K,V>- Specified by:
setGetin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
setGet
public void setGet(K key, V value, SetArgs setArgs)
Description copied from interface:TransactionalStringCommandsExecute 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:
setGetin interfaceTransactionalStringCommands<K,V>- Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments
-
setGet
public void setGet(K key, V value, SetArgs setArgs)
Description copied from interface:TransactionalValueCommandsExecute 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:
setGetin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments
-
setex
public void setex(K key, long seconds, V value)
Description copied from interface:TransactionalStringCommandsExecute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0- Specified by:
setexin interfaceTransactionalStringCommands<K,V>- Specified by:
setexin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
setnx
public void setnx(K key, V value)
Description copied from interface:TransactionalStringCommandsExecute 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:
setnxin interfaceTransactionalStringCommands<K,V>- Specified by:
setnxin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
setrange
public void setrange(K key, long offset, V value)
Description copied from interface:TransactionalStringCommandsExecute 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:
setrangein interfaceTransactionalStringCommands<K,V>- Specified by:
setrangein interfaceTransactionalValueCommands<K,V>- Parameters:
key- the keyvalue- the value
-
strlen
public void strlen(K key)
Description copied from interface:TransactionalStringCommandsExecute the command STRLEN. Summary: Get the length of the value stored in a key Group: string Requires Redis 2.2.0- Specified by:
strlenin interfaceTransactionalStringCommands<K,V>- Specified by:
strlenin interfaceTransactionalValueCommands<K,V>- Parameters:
key- the key
-
-