Interface ReactiveTransactionalValueCommands<K,V>
-
- All Superinterfaces:
ReactiveTransactionalRedisCommands
- All Known Implementing Classes:
ReactiveTransactionalStringCommandsImpl
public interface ReactiveTransactionalValueCommands<K,V> extends ReactiveTransactionalRedisCommands
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
append(K key, V value)
Execute the command APPEND.io.smallrye.mutiny.Uni<Void>
decr(K key)
Execute the command DECR.io.smallrye.mutiny.Uni<Void>
decrby(K key, long amount)
Execute the command DECRBY.io.smallrye.mutiny.Uni<Void>
get(K key)
Execute the command GET.io.smallrye.mutiny.Uni<Void>
getdel(K key)
Execute the command GETDEL.io.smallrye.mutiny.Uni<Void>
getex(K key, GetExArgs args)
Execute the command GETEX.io.smallrye.mutiny.Uni<Void>
getrange(K key, long start, long end)
Execute the command GETRANGE.io.smallrye.mutiny.Uni<Void>
getset(K key, V value)
Deprecated.See https://redis.io/commands/getsetio.smallrye.mutiny.Uni<Void>
incr(K key)
Execute the command INCR.io.smallrye.mutiny.Uni<Void>
incrby(K key, long amount)
Execute the command INCRBY.io.smallrye.mutiny.Uni<Void>
incrbyfloat(K key, double amount)
Execute the command INCRBYFLOAT.io.smallrye.mutiny.Uni<Void>
lcs(K key1, K key2)
Execute the command LCS.io.smallrye.mutiny.Uni<Void>
lcsLength(K key1, K key2)
Execute the command LCS.io.smallrye.mutiny.Uni<Void>
mget(K... keys)
Execute the command MGET.io.smallrye.mutiny.Uni<Void>
mset(Map<K,V> map)
Execute the command MSET.io.smallrye.mutiny.Uni<Void>
msetnx(Map<K,V> map)
Execute the command MSETNX.io.smallrye.mutiny.Uni<Void>
psetex(K key, long milliseconds, V value)
Execute the command PSETEX.io.smallrye.mutiny.Uni<Void>
set(K key, V value)
Execute the command SET.io.smallrye.mutiny.Uni<Void>
set(K key, V value, SetArgs setArgs)
Execute the command SET.io.smallrye.mutiny.Uni<Void>
setex(K key, long seconds, V value)
Execute the command SETEX.io.smallrye.mutiny.Uni<Void>
setGet(K key, V value)
Execute the command SET.io.smallrye.mutiny.Uni<Void>
setGet(K key, V value, SetArgs setArgs)
Execute the command SET.io.smallrye.mutiny.Uni<Void>
setnx(K key, V value)
Execute the command SETNX.io.smallrye.mutiny.Uni<Void>
setrange(K key, long offset, V value)
Execute the command SETRANGE.io.smallrye.mutiny.Uni<Void>
strlen(K key)
Execute the command STRLEN.-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Method Detail
-
append
io.smallrye.mutiny.Uni<Void> append(K key, V value)
Execute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0- Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
decr
io.smallrye.mutiny.Uni<Void> decr(K key)
Execute the command DECR. Summary: Decrement the integer value of a key by one Group: string Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
decrby
io.smallrye.mutiny.Uni<Void> decrby(K key, long amount)
Execute the command DECRBY. Summary: Decrement the integer value of a key by the given number Group: string Requires Redis 1.0.0- Parameters:
key
- the keyamount
- the amount, can be negative- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
get
io.smallrye.mutiny.Uni<Void> get(K key)
Execute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
getdel
io.smallrye.mutiny.Uni<Void> getdel(K key)
Execute the command GETDEL. Summary: Get the value of a key and delete the key Group: string Requires Redis 6.2.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
getex
io.smallrye.mutiny.Uni<Void> getex(K key, GetExArgs args)
Execute the command GETEX. Summary: Get the value of a key and optionally set its expiration Group: string Requires Redis 6.2.0- Parameters:
key
- the keyargs
- the getex command extra-arguments- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
getrange
io.smallrye.mutiny.Uni<Void> getrange(K key, long start, long end)
Execute the command GETRANGE. Summary: Get a substring of the string stored at a key Group: string Requires Redis 2.4.0- Parameters:
key
- the keystart
- the start offsetend
- the end offset- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
getset
io.smallrye.mutiny.Uni<Void> getset(K key, V value)
Deprecated.See https://redis.io/commands/getsetExecute the command GETSET. Summary: Set the string value of a key and return its old value Group: string Requires Redis 1.0.0- Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
incr
io.smallrye.mutiny.Uni<Void> incr(K key)
Execute the command INCR. Summary: Increment the integer value of a key by one Group: string Requires Redis 1.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
incrby
io.smallrye.mutiny.Uni<Void> incrby(K key, long amount)
Execute the command INCRBY. Summary: Increment the integer value of a key by the given amount Group: string Requires Redis 1.0.0- Parameters:
key
- the keyamount
- the amount, can be negative- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
incrbyfloat
io.smallrye.mutiny.Uni<Void> incrbyfloat(K key, double amount)
Execute the command INCRBYFLOAT. Summary: Increment the float value of a key by the given amount Group: string Requires Redis 2.6.0- Parameters:
key
- the keyamount
- the amount, can be negative- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
lcs
io.smallrye.mutiny.Uni<Void> lcs(K key1, K key2)
Execute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0- Parameters:
key1
- the keykey2
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
lcsLength
io.smallrye.mutiny.Uni<Void> lcsLength(K key1, K key2)
Execute the command LCS. Summary: Find longest common substring and return the length (usingLEN
) Group: string Requires Redis 7.0.0- Parameters:
key1
- the keykey2
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
mget
io.smallrye.mutiny.Uni<Void> mget(K... keys)
Execute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0- Parameters:
keys
- the keys- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
mset
io.smallrye.mutiny.Uni<Void> mset(Map<K,V> map)
Execute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1- Parameters:
map
- the key/value map containing the items to store- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
msetnx
io.smallrye.mutiny.Uni<Void> msetnx(Map<K,V> map)
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- Parameters:
map
- the key/value map containing the items to store- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
psetex
io.smallrye.mutiny.Uni<Void> psetex(K key, long milliseconds, V value)
Execute the command PSETEX. Summary: Set the value and expiration in milliseconds of a key Group: string Requires Redis 2.6.0- Parameters:
key
- the keymilliseconds
- the duration in msvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
set
io.smallrye.mutiny.Uni<Void> set(K key, V value)
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
set
io.smallrye.mutiny.Uni<Void> set(K key, V value, SetArgs setArgs)
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Parameters:
key
- the keyvalue
- the valuesetArgs
- the set command extra-arguments- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
setGet
io.smallrye.mutiny.Uni<Void> setGet(K key, V value)
Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0- Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
setGet
io.smallrye.mutiny.Uni<Void> setGet(K key, V value, SetArgs setArgs)
Execute the command SET. Summary: Set the string value of a key, and return the previous value Group: string Requires Redis 1.0.0- Parameters:
key
- the keyvalue
- the valuesetArgs
- the set command extra-arguments- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
setex
io.smallrye.mutiny.Uni<Void> setex(K key, long seconds, V value)
Execute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0- Parameters:
key
- the keyvalue
- the value
-
setnx
io.smallrye.mutiny.Uni<Void> setnx(K key, V value)
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- Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
setrange
io.smallrye.mutiny.Uni<Void> setrange(K key, long offset, V value)
Execute the command SETRANGE. Summary: Overwrite part of a string at key starting at the specified offset Group: string Requires Redis 2.2.0- Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
strlen
io.smallrye.mutiny.Uni<Void> strlen(K key)
Execute the command STRLEN. Summary: Get the length of the value stored in a key Group: string Requires Redis 2.2.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
-