Class ReactiveStringCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractRedisCommands
io.quarkus.redis.runtime.datasource.AbstractStringCommands<K,V>
io.quarkus.redis.runtime.datasource.ReactiveStringCommandsImpl<K,V>
- All Implemented Interfaces:
ReactiveRedisCommands,ReactiveStringCommands<K,,V> ReactiveValueCommands<K,V>
public class ReactiveStringCommandsImpl<K,V>
extends AbstractStringCommands<K,V>
implements ReactiveStringCommands<K,V>, ReactiveValueCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractStringCommands
typeOfValueFields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
marshaller, redis -
Constructor Summary
ConstructorsConstructorDescriptionReactiveStringCommandsImpl(ReactiveRedisDataSourceImpl redis, Type k, Type v) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Long>Execute the command APPEND.io.smallrye.mutiny.Uni<Long>Execute the command DECR.io.smallrye.mutiny.Uni<Long>Execute the command DECRBY.io.smallrye.mutiny.Uni<V>Execute the command GET.io.smallrye.mutiny.Uni<V>Execute the command GETDEL.io.smallrye.mutiny.Uni<V>Execute the command GETEX.io.smallrye.mutiny.Uni<V>Execute the command GETEX.io.smallrye.mutiny.Uni<String>Execute the command GETRANGE.io.smallrye.mutiny.Uni<V>Execute the command GETSET.io.smallrye.mutiny.Uni<Long>Execute the command INCR.io.smallrye.mutiny.Uni<Long>Execute the command INCRBY.io.smallrye.mutiny.Uni<Double>incrbyfloat(K key, double amount) Execute the command INCRBYFLOAT.io.smallrye.mutiny.Uni<String>Execute the command LCS.io.smallrye.mutiny.Uni<Long>Execute the command LCS.Execute the command MGET.io.smallrye.mutiny.Uni<Void>Execute the command MSET.io.smallrye.mutiny.Uni<Boolean>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<V>Execute the command SET.io.smallrye.mutiny.Uni<V>Execute the command SET.io.smallrye.mutiny.Uni<V>Execute the command SET.io.smallrye.mutiny.Uni<Boolean>Execute the command SETNX.io.smallrye.mutiny.Uni<Long>Execute the command SETRANGE.io.smallrye.mutiny.Uni<Long>Execute the command STRLEN.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractStringCommands
_append, _decr, _decrby, _get, _getdel, _getex, _getex, _getrange, _getset, _incr, _incrby, _incrbyfloat, _lcs, _lcsLength, _mget, _mset, _msetnx, _psetex, _set, _set, _set, _setex, _setGet, _setGet, _setGet, _setnx, _setrange, _strlen, decodeAsOrderedMap, decodeVMethods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
execute, isMap
-
Constructor Details
-
ReactiveStringCommandsImpl
-
-
Method Details
-
getDataSource
- Specified by:
getDataSourcein interfaceReactiveRedisCommands- Returns:
- the data source.
-
set
Description copied from interface:ReactiveStringCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceReactiveStringCommands<K,V> - Specified by:
setin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- a Uni producing a
nullitem on success, a failure otherwise
-
set
Description copied from interface:ReactiveStringCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceReactiveStringCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- a Uni producing a
nullitem on success, a failure otherwise
-
set
Description copied from interface:ReactiveValueCommandsExecute the command SET. Summary: Set the string value of a key Group: string Requires Redis 1.0.0- Specified by:
setin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- a Uni producing a
nullitem on success, a failure otherwise
-
setGet
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
setGetin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- the old value,
nullif not present
-
setGet
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- the old value,
nullif not present
-
setGet
Description copied from interface:ReactiveValueCommandsExecute 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 interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the valuesetArgs- the set command extra-arguments- Returns:
- the old value,
nullif not present
-
setex
Description copied from interface:ReactiveStringCommandsExecute the command SETEX. Summary: Set the value and expiration of a key Group: string Requires Redis 2.0.0- Specified by:
setexin interfaceReactiveStringCommands<K,V> - Specified by:
setexin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value
-
psetex
Description copied from interface:ReactiveStringCommandsExecute the command PSETEX. Summary: Set the value and expiration in milliseconds of a key Group: string Requires Redis 2.6.0- Specified by:
psetexin interfaceReactiveStringCommands<K,V> - Specified by:
psetexin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keymilliseconds- the duration in msvalue- the value- Returns:
- a Uni producing a
nullitem on success, a failure otherwise
-
setnx
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
setnxin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
truethe key was setfalsethe key was not set
-
setrange
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
setrangein interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- the length of the string after it was modified by the command.
-
strlen
Description copied from interface:ReactiveStringCommandsExecute the command STRLEN. Summary: Get the length of the value stored in a key Group: string Requires Redis 2.2.0- Specified by:
strlenin interfaceReactiveStringCommands<K,V> - Specified by:
strlenin interfaceReactiveValueCommands<K,V> - Parameters:
key- the key- Returns:
- the length of the string at key, or 0 when key does not exist.
-
decr
Description copied from interface:ReactiveStringCommandsExecute the command DECR. Summary: Decrement the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
decrin interfaceReactiveStringCommands<K,V> - Specified by:
decrin interfaceReactiveValueCommands<K,V> - Parameters:
key- the key- Returns:
- the value of key after the decrement
-
decrby
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
decrbyin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyamount- the amount, can be negative- Returns:
- the value of key after the decrement
-
get
Description copied from interface:ReactiveStringCommandsExecute the command GET. Summary: Get the value of a key Group: string Requires Redis 1.0.0- Specified by:
getin interfaceReactiveStringCommands<K,V> - Specified by:
getin interfaceReactiveValueCommands<K,V> - Parameters:
key- the key- Returns:
- the value of key, or
nullwhen key does not exist.
-
getdel
Description copied from interface:ReactiveStringCommandsExecute the command GETDEL. Summary: Get the value of a key and delete the key Group: string Requires Redis 6.2.0- Specified by:
getdelin interfaceReactiveStringCommands<K,V> - Specified by:
getdelin interfaceReactiveValueCommands<K,V> - Parameters:
key- the key- Returns:
- the value of key,
nullwhen key does not exist, or an error if the key's value type isn't a string.
-
getex
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Parameters:
key- the keyargs- the getex command extra-arguments- Returns:
- the value of key, or
nullwhen key does not exist.
-
getex
Description copied from interface:ReactiveValueCommandsExecute 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 interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyargs- the getex command extra-arguments- Returns:
- the value of key, or
nullwhen key does not exist.
-
getrange
Description copied from interface:ReactiveStringCommandsExecute the command GETRANGE. Summary: Get a substring of the string stored at a key Group: string Requires Redis 2.4.0- Specified by:
getrangein interfaceReactiveStringCommands<K,V> - Specified by:
getrangein interfaceReactiveValueCommands<K,V> - Parameters:
key- the keystart- the start offsetend- the end offset- Returns:
- the sub-string
-
getset
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
getsetin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- the old value stored at key, or
nullwhen key did not exist.
-
incr
Description copied from interface:ReactiveStringCommandsExecute the command INCR. Summary: Increment the integer value of a key by one Group: string Requires Redis 1.0.0- Specified by:
incrin interfaceReactiveStringCommands<K,V> - Specified by:
incrin interfaceReactiveValueCommands<K,V> - Parameters:
key- the key- Returns:
- the value of key after the increment
-
incrby
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
incrbyin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyamount- the amount, can be negative- Returns:
- the value of key after the increment
-
incrbyfloat
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
incrbyfloatin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyamount- the amount, can be negative- Returns:
- the value of key after the increment.
-
append
Description copied from interface:ReactiveStringCommandsExecute the command APPEND. Summary: Append a value to a key Group: string Requires Redis 2.0.0- Specified by:
appendin interfaceReactiveStringCommands<K,V> - Specified by:
appendin interfaceReactiveValueCommands<K,V> - Parameters:
key- the keyvalue- the value- Returns:
- the length of the string after the append operation.
-
mget
Description copied from interface:ReactiveStringCommandsExecute the command MGET. Summary: Get the values of all the given keys Group: string Requires Redis 1.0.0- Specified by:
mgetin interfaceReactiveStringCommands<K,V> - Specified by:
mgetin interfaceReactiveValueCommands<K,V> - Parameters:
keys- the keys- Returns:
- the value of key, or
nullwhen key does not exist. If one of the passed key does not exist, the returned map contains anullvalue associated with the missing key.
-
mset
Description copied from interface:ReactiveStringCommandsExecute the command MSET. Summary: Set multiple keys to multiple values Group: string Requires Redis 1.0.1- Specified by:
msetin interfaceReactiveStringCommands<K,V> - Specified by:
msetin interfaceReactiveValueCommands<K,V> - Parameters:
map- the key/value map containing the items to store- Returns:
- a Uni producing a
nullitem on success, a failure otherwise
-
msetnx
Description copied from interface:ReactiveStringCommandsExecute 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 interfaceReactiveStringCommands<K,V> - Specified by:
msetnxin interfaceReactiveValueCommands<K,V> - Parameters:
map- the key/value map containing the items to store- Returns:
truethe all the keys were set.falseno key was set (at least one key already existed).
-
lcs
Description copied from interface:ReactiveStringCommandsExecute the command LCS. Summary: Find longest common substring Group: string Requires Redis 7.0.0- Specified by:
lcsin interfaceReactiveStringCommands<K,V> - Specified by:
lcsin interfaceReactiveValueCommands<K,V> - Parameters:
key1- the keykey2- the key- Returns:
- the string representing the longest common substring is returned.
-
lcsLength
Description copied from interface:ReactiveStringCommandsExecute the command LCS. Summary: Find longest common substring and return the length (usingLEN) Group: string Requires Redis 7.0.0- Specified by:
lcsLengthin interfaceReactiveStringCommands<K,V> - Specified by:
lcsLengthin interfaceReactiveValueCommands<K,V> - Parameters:
key1- the keykey2- the key- Returns:
- the length of the longest common substring.
-