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
ConstructorsConstructorDescriptionReactiveTransactionalStringCommandsImpl(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, queuedOrDiscardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ReactiveTransactionalStringCommandsExecute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0- Specified by:
appendin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
appendin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command DECR. Summary: Decrement the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
decrin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
decrin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
decrbyin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyamount- the amount, can be negative- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0- Specified by:
getin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
getin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command GETDEL. Summary: Get the value of a key and delete the key Group: string Requires Redis 6.2.0- Specified by:
getdelin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
getdelin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Parameters:
key- the keyargs- the getex command extra-arguments- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalValueCommandsExecute 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 interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyargs- the getex command extra-arguments- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command GETRANGE. Summary: Get a substring of the string stored at a key Group: string Requires Redis 2.4.0- Specified by:
getrangein interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
getrangein interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keystart- the start offsetend- the end offset- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
getsetin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command INCR. Summary: Increment the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
incrin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
incrin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
incrbyin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyamount- the amount, can be negative- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
incrbyfloatin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyamount- the amount, can be negative- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0- Specified by:
lcsin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
lcsin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key1- the keykey2- the key- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command LCS. Summary: Find longest common substring and return the length (usingLEN) Group: string Requires Redis 7.0.0- Specified by:
lcsLengthin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
lcsLengthin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key1- the keykey2- the key- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0- Specified by:
mgetin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
mgetin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
keys- the keys- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1- Specified by:
msetin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
msetin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
map- the key/value map containing the items to store- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
msetnxin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
map- the key/value map containing the items to store- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command PSETEX. Summary: Set the value and expiration in milliseconds of a key Group: string Requires Redis 2.6.0- Specified by:
psetexin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
psetexin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keymilliseconds- the duration in msvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
setin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceReactiveTransactionalStringCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalValueCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
setGetin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalValueCommandsExecute 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 interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0- Specified by:
setexin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
setexin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure
-
setnx
Description copied from interface:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
setnxin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute 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 interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
setrangein interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- A
Uniemittingnullwhen 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:ReactiveTransactionalStringCommandsExecute the command STRLEN. Summary: Get the length of the value stored in a key Group: string Requires Redis 2.2.0- Specified by:
strlenin interfaceReactiveTransactionalStringCommands<K,V> - Specified by:
strlenin interfaceReactiveTransactionalValueCommands<K,V> - Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-