Class ReactiveTransactionalStringCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalStringCommandsImpl<K,V>
- All Implemented Interfaces:
ReactiveTransactionalRedisCommands
,ReactiveTransactionalStringCommands<K,
,V> ReactiveTransactionalValueCommands<K,
V>
public class ReactiveTransactionalStringCommandsImpl<K,V>
extends AbstractTransactionalCommands
implements ReactiveTransactionalStringCommands<K,V>, ReactiveTransactionalValueCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx
-
Constructor Summary
ConstructorDescriptionReactiveTransactionalStringCommandsImpl
(ReactiveTransactionalRedisDataSource ds, ReactiveStringCommandsImpl<K, V> reactive, TransactionHolder tx) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
Execute the command APPEND.io.smallrye.mutiny.Uni<Void>
Execute the command DECR.io.smallrye.mutiny.Uni<Void>
Execute the command DECRBY.io.smallrye.mutiny.Uni<Void>
Execute the command GET.io.smallrye.mutiny.Uni<Void>
Execute the command GETDEL.io.smallrye.mutiny.Uni<Void>
Execute the command GETEX.io.smallrye.mutiny.Uni<Void>
Execute the command GETEX.io.smallrye.mutiny.Uni<Void>
Execute the command GETRANGE.io.smallrye.mutiny.Uni<Void>
Execute the command GETSET.io.smallrye.mutiny.Uni<Void>
Execute the command INCR.io.smallrye.mutiny.Uni<Void>
Execute the command INCRBY.io.smallrye.mutiny.Uni<Void>
incrbyfloat
(K key, double amount) Execute the command INCRBYFLOAT.io.smallrye.mutiny.Uni<Void>
Execute the command LCS.io.smallrye.mutiny.Uni<Void>
Execute the command LCS.io.smallrye.mutiny.Uni<Void>
Execute the command MGET.io.smallrye.mutiny.Uni<Void>
Execute the command MSET.io.smallrye.mutiny.Uni<Void>
Execute the command MSETNX.io.smallrye.mutiny.Uni<Void>
Execute the command PSETEX.io.smallrye.mutiny.Uni<Void>
Execute the command SET.io.smallrye.mutiny.Uni<Void>
Execute the command SET.io.smallrye.mutiny.Uni<Void>
Execute the command SET.io.smallrye.mutiny.Uni<Void>
Execute the command SETEX.io.smallrye.mutiny.Uni<Void>
Execute the command SET.io.smallrye.mutiny.Uni<Void>
Execute the command SET.io.smallrye.mutiny.Uni<Void>
Execute the command SET.io.smallrye.mutiny.Uni<Void>
Execute the command SETNX.io.smallrye.mutiny.Uni<Void>
Execute the command SETRANGE.io.smallrye.mutiny.Uni<Void>
Execute the command STRLEN.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscard
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.ReactiveTransactionalRedisCommands
getDataSource
-
Constructor Details
-
ReactiveTransactionalStringCommandsImpl
public ReactiveTransactionalStringCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveStringCommandsImpl<K, V> reactive, TransactionHolder tx)
-
-
Method Details
-
append
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0- Specified by:
append
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
append
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
decr
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
decrby
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0- Specified by:
get
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
get
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
getdel
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - 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.
-
getex
Description copied from interface:ReactiveTransactionalValueCommands
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 interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
getrange
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
getset
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
incr
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
incrby
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
incrbyfloat
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0- Specified by:
lcs
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
lcs
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
lcsLength
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0- Specified by:
mget
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
mget
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1- Specified by:
mset
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
mset
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
msetnx
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
psetex
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
set
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
set
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
set
in interfaceReactiveTransactionalStringCommands<K,
V> - 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.
-
set
Description copied from interface:ReactiveTransactionalValueCommands
Execute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
set
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
setGet
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalValueCommands
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 interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
Execute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0- Specified by:
setex
in interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
setex
in interfaceReactiveTransactionalValueCommands<K,
V> - Parameters:
key
- the keyvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure
-
setnx
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
setnx
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
setrange
in interfaceReactiveTransactionalValueCommands<K,
V> - 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
Description copied from interface:ReactiveTransactionalStringCommands
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 interfaceReactiveTransactionalStringCommands<K,
V> - Specified by:
strlen
in interfaceReactiveTransactionalValueCommands<K,
V> - 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.
-