Interface ReactiveRedisDataSource
- All Known Implementing Classes:
ReactiveRedisDataSourceImpl
This class provides access to various groups of methods. Each method execute a Redis command
.
Groups and methods are type-safe. The decomposition follows the Redis API group.
NOTE: Not all commands are exposed from this API. This is done on purpose. You can always use the low-level Redis client to execute others commands.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ReactiveAutoSuggestCommands<String>
Gets the object to emit commands from theauto-suggest
group.<K> ReactiveAutoSuggestCommands<K>
autosuggest
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to emit commands from theauto-suggest
group.<K> ReactiveAutoSuggestCommands<K>
autosuggest
(Class<K> redisKeyType) Gets the object to emit commands from theauto-suggest
group.default ReactiveBitMapCommands<String>
bitmap()
Gets the object to execute commands manipulating bitmap data structures.<K> ReactiveBitMapCommands<K>
bitmap
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to execute commands manipulating bitmap data structures.<K> ReactiveBitMapCommands<K>
Gets the object to execute commands manipulating bitmap data structures.<K,
V> ReactiveBloomCommands<K, V> bloom
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Bloom filters.default <V> ReactiveBloomCommands<String,
V> bloom
(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Bloom filters.<K,
V> ReactiveBloomCommands<K, V> Gets the object to manipulate Bloom filters.default <V> ReactiveBloomCommands<String,
V> Gets the object to manipulate Bloom filters.<K,
V> ReactiveCountMinCommands<K, V> countmin
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Count-Min sketches.default <V> ReactiveCountMinCommands<String,
V> countmin
(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Count-Min sketches.<K,
V> ReactiveCountMinCommands<K, V> Gets the object to manipulate Count-Min sketches.default <V> ReactiveCountMinCommands<String,
V> Gets the object to manipulate Count-Min sketches.<K,
V> ReactiveCuckooCommands<K, V> cuckoo
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Cuckoo filters.default <V> ReactiveCuckooCommands<String,
V> cuckoo
(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Cuckoo filters.<K,
V> ReactiveCuckooCommands<K, V> Gets the object to manipulate Cuckoo filters.default <V> ReactiveCuckooCommands<String,
V> Gets the object to manipulate Cuckoo filters.io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response>
Executes a command.io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response>
Executes a command.io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response>
Executes a command.io.smallrye.mutiny.Uni<Void>
flushall()
Execute the command FLUSHALL.<K,
V> ReactiveGeoCommands<K, V> geo
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating geo items (a.k.a.default <V> ReactiveGeoCommands<String,
V> geo
(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating geo items (a.k.a.<K,
V> ReactiveGeoCommands<K, V> Gets the object to execute commands manipulating geo items (a.k.a.default <V> ReactiveGeoCommands<String,
V> Gets the object to execute commands manipulating geo items (a.k.a.io.vertx.mutiny.redis.client.Redis
getRedis()
default ReactiveGraphCommands<String>
graph()
Gets the object to manipulate graphs.<K> ReactiveGraphCommands<K>
Gets the object to manipulate graphs.<K,
F, V> ReactiveHashCommands<K, F, V> hash
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<F> fieldType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating hashes (a.k.a.default <V> ReactiveHashCommands<String,
String, V> hash
(com.fasterxml.jackson.core.type.TypeReference<V> typeOfValue) Gets the object to execute commands manipulating hashes (a.k.a.<K,
F, V> ReactiveHashCommands<K, F, V> Gets the object to execute commands manipulating hashes (a.k.a.default <V> ReactiveHashCommands<String,
String, V> Gets the object to execute commands manipulating hashes (a.k.a.<K,
V> ReactiveHyperLogLogCommands<K, V> hyperloglog
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.default <V> ReactiveHyperLogLogCommands<String,
V> hyperloglog
(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.<K,
V> ReactiveHyperLogLogCommands<K, V> hyperloglog
(Class<K> redisKeyType, Class<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.default <V> ReactiveHyperLogLogCommands<String,
V> hyperloglog
(Class<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.default ReactiveJsonCommands<String>
json()
Gets the object to manipulate JSON values.<K> ReactiveJsonCommands<K>
json
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to manipulate JSON values.<K> ReactiveJsonCommands<K>
Gets the object to manipulate JSON values.default ReactiveKeyCommands<String>
key()
Gets the object to execute commands manipulating keys and expiration times.<K> ReactiveKeyCommands<K>
key
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to execute commands manipulating keys and expiration times.<K> ReactiveKeyCommands<K>
Gets the object to execute commands manipulating keys and expiration times.<K,
V> ReactiveListCommands<K, V> list
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating lists.default <V> ReactiveListCommands<String,
V> list
(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating lists.<K,
V> ReactiveListCommands<K, V> Gets the object to execute commands manipulating lists.default <V> ReactiveListCommands<String,
V> Gets the object to execute commands manipulating lists.<V> ReactivePubSubCommands<V>
pubsub
(com.fasterxml.jackson.core.type.TypeReference<V> messageType) Gets the object to publish and receive messages.<V> ReactivePubSubCommands<V>
Gets the object to publish and receive messages.default ReactiveSearchCommands<String>
search()
Gets the object to emit commands from thesearch
group.<K> ReactiveSearchCommands<K>
Deprecated.Use the variant without parameter, as the index name must be a string.io.smallrye.mutiny.Uni<Void>
select
(long index) Execute the command SELECT.<K,
V> ReactiveSetCommands<K, V> set
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating sets.default <V> ReactiveSetCommands<String,
V> set
(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating sets.<K,
V> ReactiveSetCommands<K, V> Gets the object to execute commands manipulating sets.default <V> ReactiveSetCommands<String,
V> Gets the object to execute commands manipulating sets.<K,
V> ReactiveSortedSetCommands<K, V> sortedSet
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating sorted sets.default <V> ReactiveSortedSetCommands<String,
V> sortedSet
(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating sorted sets.<K,
V> ReactiveSortedSetCommands<K, V> Gets the object to execute commands manipulating sorted sets.default <V> ReactiveSortedSetCommands<String,
V> Gets the object to execute commands manipulating sorted sets.<K,
F, V> ReactiveStreamCommands<K, F, V> stream
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<F> fieldType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating streams.default <V> ReactiveStreamCommands<String,
String, V> stream
(com.fasterxml.jackson.core.type.TypeReference<V> typeOfValue) Gets the object to execute commands manipulating streams, using a string key, and string fields.<K,
F, V> ReactiveStreamCommands<K, F, V> Gets the object to execute commands manipulating streams.default <V> ReactiveStreamCommands<String,
String, V> Gets the object to execute commands manipulating streams, using a string key, and string fields.<K,
V> ReactiveStringCommands<K, V> Deprecated.Usevalue(Class, Class)
insteaddefault <V> ReactiveStringCommands<String,
V> Deprecated.Usevalue(Class)
insteaddefault ReactiveTimeSeriesCommands<String>
Gets the object to emit commands from thetime series
group.<K> ReactiveTimeSeriesCommands<K>
timeseries
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to emit commands from thetime series
group.<K> ReactiveTimeSeriesCommands<K>
timeseries
(Class<K> redisKeyType) Gets the object to emit commands from thetime series
group.<K,
V> ReactiveTopKCommands<K, V> topk
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Top-K list.default <V> ReactiveTopKCommands<String,
V> topk
(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Top-K list.<K,
V> ReactiveTopKCommands<K, V> Gets the object to manipulate Top-K list.default <V> ReactiveTopKCommands<String,
V> Gets the object to manipulate Top-K list.<K,
V> ReactiveValueCommands<K, V> value
(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating stored strings.default <V> ReactiveValueCommands<String,
V> value
(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating stored strings.<K,
V> ReactiveValueCommands<K, V> Gets the object to execute commands manipulating stored strings.default <V> ReactiveValueCommands<String,
V> Gets the object to execute commands manipulating stored strings.io.smallrye.mutiny.Uni<Void>
withConnection
(Function<ReactiveRedisDataSource, io.smallrye.mutiny.Uni<Void>> function) Retrieves aReactiveRedisDataSource
using a single connection with the Redis Server.<I> io.smallrye.mutiny.Uni<OptimisticLockingTransactionResult<I>>
withTransaction
(Function<ReactiveRedisDataSource, io.smallrye.mutiny.Uni<I>> preTxBlock, BiFunction<I, ReactiveTransactionalRedisDataSource, io.smallrye.mutiny.Uni<Void>> tx, String... watchedKeys) Retrieves aRedisDataSource
enqueuing commands in a Redis Transaction (MULTI
).io.smallrye.mutiny.Uni<TransactionResult>
withTransaction
(Function<ReactiveTransactionalRedisDataSource, io.smallrye.mutiny.Uni<Void>> tx) Retrieves aRedisDataSource
enqueuing commands in a Redis Transaction (MULTI
).io.smallrye.mutiny.Uni<TransactionResult>
withTransaction
(Function<ReactiveTransactionalRedisDataSource, io.smallrye.mutiny.Uni<Void>> tx, String... watchedKeys) Retrieves aRedisDataSource
enqueuing commands in a Redis Transaction (MULTI
).
-
Method Details
-
withConnection
io.smallrye.mutiny.Uni<Void> withConnection(Function<ReactiveRedisDataSource, io.smallrye.mutiny.Uni<Void>> function) Retrieves aReactiveRedisDataSource
using a single connection with the Redis Server. The connection is acquired from the pool and released when theUni
returned byfunction
produces anull
item or a failure.- Parameters:
function
- the function receiving the single-connection data source and producingnull
when the connection can be released.
-
withTransaction
io.smallrye.mutiny.Uni<TransactionResult> withTransaction(Function<ReactiveTransactionalRedisDataSource, io.smallrye.mutiny.Uni<Void>> tx) Retrieves aRedisDataSource
enqueuing commands in a Redis Transaction (MULTI
). Note that transaction acquires a single connection, and all the commands are enqueued in this connection. The commands are only executed when the passed block emits thenull
item.The results of the commands are retrieved using the produced
TransactionResult
.The user can discard a transaction using the
TransactionalRedisDataSource.discard()
method. In this case, the producedTransactionResult
will be empty.- Parameters:
tx
- the consumer receiving the transactional redis data source. The enqueued commands are only executed at the end of the block.
-
withTransaction
io.smallrye.mutiny.Uni<TransactionResult> withTransaction(Function<ReactiveTransactionalRedisDataSource, io.smallrye.mutiny.Uni<Void>> tx, String... watchedKeys) Retrieves aRedisDataSource
enqueuing commands in a Redis Transaction (MULTI
). Note that transaction acquires a single connection, and all the commands are enqueued in this connection. The commands are only executed when the passed block emits thenull
item.The results of the commands are retrieved using the produced
TransactionResult
.The user can discard a transaction using the
TransactionalRedisDataSource.discard()
method. In this case, the producedTransactionResult
will be empty.- Parameters:
tx
- the consumer receiving the transactional redis data source. The enqueued commands are only executed at the end of the block.watchedKeys
- the keys to watch during the execution of the transaction. If one of these key is modified before the completion of the transaction, the transaction is discarded.
-
withTransaction
<I> io.smallrye.mutiny.Uni<OptimisticLockingTransactionResult<I>> withTransaction(Function<ReactiveRedisDataSource, io.smallrye.mutiny.Uni<I>> preTxBlock, BiFunction<I, ReactiveTransactionalRedisDataSource, io.smallrye.mutiny.Uni<Void>> tx, String... watchedKeys) Retrieves aRedisDataSource
enqueuing commands in a Redis Transaction (MULTI
). Note that transaction acquires a single connection, and all the commands are enqueued in this connection. The commands are only executed when the passed block emits thenull
item.This variant also allows executing code before the transaction gets started but after the key being watched:
WATCH key // preTxBlock element = ZRANGE k 0 0 // TxBlock MULTI ZREM k element EXEC
The
preTxBlock
returns aUni<I>
. The produced value is received by thetx
block, which can use that value to execute the appropriate operation in the transaction. The produced value can also be retrieved from the producedOptimisticLockingTransactionResult
. Commands issued in thepreTxBlock
must used the passed (single-connection)ReactiveRedisDataSource
instance.If the
preTxBlock
throws an exception or emits a failure, the transaction is not executed, and the returnedOptimisticLockingTransactionResult
is empty.This construct allows implementing operation relying on optimistic locking. The results of the commands are retrieved using the produced
OptimisticLockingTransactionResult
.The user can discard a transaction using the
TransactionalRedisDataSource.discard()
method. In this case, the producedOptimisticLockingTransactionResult
will be empty.- Parameters:
tx
- the consumer receiving the transactional redis data source. The enqueued commands are only executed at the end of the block.watchedKeys
- the keys to watch during the execution of the transaction. If one of these key is modified before the completion of the transaction, the transaction is discarded.
-
select
Execute the command SELECT. Summary: Change the selected database for the current connection Group: connection Requires Redis 1.0.0This method is expected to be used inside a
withConnection(Function)
block.- Parameters:
index
- the database index.
-
flushall
io.smallrye.mutiny.Uni<Void> flushall()Execute the command FLUSHALL. Summary: Remove all keys from all databases Group: server Requires Redis 1.0.0 -
hash
<K,F, ReactiveHashCommands<K,V> F, hashV> (Class<K> redisKeyType, Class<F> fieldType, Class<V> valueType) Gets the object to execute commands manipulating hashes (a.k.a.Map<F, V>
).If you want to use a hash of
<String -> Person>
stored using String identifier, you would use:hash(String.class, String.class, Person.class)
. If you want to use a hash of<String -> Person>
stored using UUID identifier, you would use:hash(UUID.class, String.class, Person.class)
.- Type Parameters:
K
- the type of the redis keyF
- the type of the fields (map's keys)V
- the type of the value- Parameters:
redisKeyType
- the class of the keysfieldType
- the class of the fieldsvalueType
- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<K, V>
).
-
hash
<K,F, ReactiveHashCommands<K,V> F, hashV> (com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<F> fieldType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating hashes (a.k.a.Map<F, V>
).If you want to use a hash of
<String -> Person>
stored using String identifier, you would use:hash(String.class, String.class, Person.class)
. If you want to use a hash of<String -> Person>
stored using UUID identifier, you would use:hash(UUID.class, String.class, Person.class)
.- Type Parameters:
K
- the type of the redis keyF
- the type of the fields (map's keys)V
- the type of the value- Parameters:
redisKeyType
- the class of the keysfieldType
- the class of the fieldsvalueType
- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<K, V>
).
-
hash
Gets the object to execute commands manipulating hashes (a.k.a.Map<String, V>
).This is a shortcut on
hash(String.class, String.class, V)
- Type Parameters:
V
- the type of the value- Parameters:
typeOfValue
- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<String, V>
).
-
hash
default <V> ReactiveHashCommands<String,String, hashV> (com.fasterxml.jackson.core.type.TypeReference<V> typeOfValue) Gets the object to execute commands manipulating hashes (a.k.a.Map<String, V>
).This is a shortcut on
hash(String.class, String.class, V)
- Type Parameters:
V
- the type of the value- Parameters:
typeOfValue
- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<String, V>
).
-
geo
Gets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}
).V
represents the type of the member, i.e. the localized thing.- Type Parameters:
K
- the type of the redis keyV
- the type of the member- Parameters:
redisKeyType
- the class of the keysmemberType
- the class of the members- Returns:
- the object to execute geo commands.
-
geo
<K,V> ReactiveGeoCommands<K,V> geo(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}
).V
represents the type of the member, i.e. the localized thing.- Type Parameters:
K
- the type of the redis keyV
- the type of the member- Parameters:
redisKeyType
- the class of the keysmemberType
- the class of the members- Returns:
- the object to execute geo commands.
-
geo
Gets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}
).V
represents the type of the member, i.e. the localized thing.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the class of the members- Returns:
- the object to execute geo commands.
-
geo
default <V> ReactiveGeoCommands<String,V> geo(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}
).V
represents the type of the member, i.e. the localized thing.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the class of the members- Returns:
- the object to execute geo commands.
-
key
Gets the object to execute commands manipulating keys and expiration times.- Type Parameters:
K
- the type of the key- Parameters:
redisKeyType
- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
key
Gets the object to execute commands manipulating keys and expiration times.- Type Parameters:
K
- the type of the key- Parameters:
redisKeyType
- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
key
Gets the object to execute commands manipulating keys and expiration times.- Returns:
- the object to execute commands manipulating keys.
-
sortedSet
Gets the object to execute commands manipulating sorted sets.- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
redisKeyType
- the type of the keysvalueType
- the type of the value sorted in the sorted sets- Returns:
- the object to manipulate sorted sets.
-
sortedSet
<K,V> ReactiveSortedSetCommands<K,V> sortedSet(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating sorted sets.- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
redisKeyType
- the type of the keysvalueType
- the type of the value sorted in the sorted sets- Returns:
- the object to manipulate sorted sets.
-
sortedSet
Gets the object to execute commands manipulating sorted sets.- Type Parameters:
V
- the type of the value- Parameters:
valueType
- the type of the value sorted in the sorted sets- Returns:
- the object to manipulate sorted sets.
-
sortedSet
default <V> ReactiveSortedSetCommands<String,V> sortedSet(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating sorted sets.- Type Parameters:
V
- the type of the value- Parameters:
valueType
- the type of the value sorted in the sorted sets- Returns:
- the object to manipulate sorted sets.
-
value
Gets the object to execute commands manipulating stored strings.NOTE: Instead of
string
, this group is namedvalue
to avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
redisKeyType
- the type of the keysvalueType
- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
value
<K,V> ReactiveValueCommands<K,V> value(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating stored strings.NOTE: Instead of
string
, this group is namedvalue
to avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
redisKeyType
- the type of the keysvalueType
- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
value
Gets the object to execute commands manipulating stored strings.NOTE: Instead of
string
, this group is namedvalue
to avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Type Parameters:
V
- the type of the value- Parameters:
valueType
- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
value
default <V> ReactiveValueCommands<String,V> value(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating stored strings.NOTE: Instead of
string
, this group is namedvalue
to avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Type Parameters:
V
- the type of the value- Parameters:
valueType
- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
string
Deprecated.Usevalue(Class, Class)
insteadGets the object to execute commands manipulating stored strings.- Type Parameters:
K
- the type of the keyV
- the type of the value- Parameters:
redisKeyType
- the type of the keysvalueType
- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
string
Deprecated.Usevalue(Class)
insteadGets the object to execute commands manipulating stored strings.- Type Parameters:
V
- the type of the value- Parameters:
valueType
- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
set
Gets the object to execute commands manipulating sets.- Type Parameters:
K
- the type of the keyV
- the type of the member- Parameters:
redisKeyType
- the type of the keysmemberType
- the type of the member stored in each set- Returns:
- the object to manipulate sets.
-
set
<K,V> ReactiveSetCommands<K,V> set(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating sets.- Type Parameters:
K
- the type of the keyV
- the type of the member- Parameters:
redisKeyType
- the type of the keysmemberType
- the type of the member stored in each set- Returns:
- the object to manipulate sets.
-
set
Gets the object to execute commands manipulating sets.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the type of the member stored in each set- Returns:
- the object to manipulate sets.
-
set
default <V> ReactiveSetCommands<String,V> set(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating sets.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the type of the member stored in each set- Returns:
- the object to manipulate sets.
-
list
Gets the object to execute commands manipulating lists.- Type Parameters:
K
- the type of the keyV
- the type of the member- Parameters:
redisKeyType
- the type of the keysmemberType
- the type of the member stored in each list- Returns:
- the object to manipulate sets.
-
list
Gets the object to execute commands manipulating lists.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the type of the member stored in each list- Returns:
- the object to manipulate sets.
-
list
<K,V> ReactiveListCommands<K,V> list(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating lists.- Type Parameters:
K
- the type of the keyV
- the type of the member- Parameters:
redisKeyType
- the type of the keysmemberType
- the type of the member stored in each list- Returns:
- the object to manipulate sets.
-
list
default <V> ReactiveListCommands<String,V> list(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating lists.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the type of the member stored in each list- Returns:
- the object to manipulate sets.
-
hyperloglog
Gets the object to execute commands manipulating hyperloglog data structures.- Type Parameters:
K
- the type of the keyV
- the type of the member- Parameters:
redisKeyType
- the type of the keysmemberType
- the type of the member stored in the data structure- Returns:
- the object to manipulate hyper log log data structures.
-
hyperloglog
<K,V> ReactiveHyperLogLogCommands<K,V> hyperloglog(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.- Type Parameters:
K
- the type of the keyV
- the type of the member- Parameters:
redisKeyType
- the type of the keysmemberType
- the type of the member stored in the data structure- Returns:
- the object to manipulate hyper log log data structures.
-
hyperloglog
Gets the object to execute commands manipulating hyperloglog data structures.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the type of the member stored in the data structure- Returns:
- the object to manipulate hyper log log data structures.
-
hyperloglog
default <V> ReactiveHyperLogLogCommands<String,V> hyperloglog(com.fasterxml.jackson.core.type.TypeReference<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.- Type Parameters:
V
- the type of the member- Parameters:
memberType
- the type of the member stored in the data structure- Returns:
- the object to manipulate hyper log log data structures.
-
bitmap
Gets the object to execute commands manipulating bitmap data structures.- Type Parameters:
K
- the type of the key- Parameters:
redisKeyType
- the type of the keys- Returns:
- the object to manipulate bitmap data structures.
-
bitmap
Gets the object to execute commands manipulating bitmap data structures.- Type Parameters:
K
- the type of the key- Parameters:
redisKeyType
- the type of the keys- Returns:
- the object to manipulate bitmap data structures.
-
bitmap
Gets the object to execute commands manipulating bitmap data structures.- Returns:
- the object to manipulate bitmap data structures.
-
stream
<K,F, ReactiveStreamCommands<K,V> F, streamV> (Class<K> redisKeyType, Class<F> fieldType, Class<V> valueType) Gets the object to execute commands manipulating streams.- Type Parameters:
K
- the type of the redis keyF
- the type of the fields (map's keys)V
- the type of the value- Parameters:
redisKeyType
- the class of the keysfieldType
- the class of the fields included in the message exchanged on the streamsvalueType
- the class of the values included in the message exchanged on the streams- Returns:
- the object to execute commands manipulating streams.
-
stream
<K,F, ReactiveStreamCommands<K,V> F, streamV> (com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<F> fieldType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to execute commands manipulating streams.- Type Parameters:
K
- the type of the redis keyF
- the type of the fields (map's keys)V
- the type of the value- Parameters:
redisKeyType
- the class of the keysfieldType
- the class of the fields included in the message exchanged on the streamsvalueType
- the class of the values included in the message exchanged on the streams- Returns:
- the object to execute commands manipulating streams.
-
stream
Gets the object to execute commands manipulating streams, using a string key, and string fields.- Type Parameters:
V
- the type of the value- Returns:
- the object to execute commands manipulating streams.
-
stream
default <V> ReactiveStreamCommands<String,String, streamV> (com.fasterxml.jackson.core.type.TypeReference<V> typeOfValue) Gets the object to execute commands manipulating streams, using a string key, and string fields.- Type Parameters:
V
- the type of the value- Returns:
- the object to execute commands manipulating streams.
-
pubsub
Gets the object to publish and receive messages.- Type Parameters:
V
- the type of message- Parameters:
messageType
- the type of message- Returns:
- the object to publish and subscribe to Redis channels
-
pubsub
Gets the object to publish and receive messages.- Type Parameters:
V
- the type of message- Parameters:
messageType
- the type of message- Returns:
- the object to publish and subscribe to Redis channels
-
json
Gets the object to manipulate JSON values. This group requires the RedisJSON module.- Returns:
- the object to manipulate JSON values.
-
json
Gets the object to manipulate JSON values. This group requires the RedisJSON module.- Type Parameters:
K
- the type of keys- Returns:
- the object to manipulate JSON values.
-
json
Gets the object to manipulate JSON values. This group requires the RedisJSON module.- Type Parameters:
K
- the type of keys- Returns:
- the object to manipulate JSON values.
-
bloom
Gets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Type Parameters:
V
- the type of the values added into the Bloom filter- Returns:
- the object to manipulate bloom values.
-
bloom
default <V> ReactiveBloomCommands<String,V> bloom(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Type Parameters:
V
- the type of the values added into the Bloom filter- Returns:
- the object to manipulate bloom values.
-
bloom
Gets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Type Parameters:
K
- the type of keysV
- the type of the values added into the Bloom filter- Returns:
- the object to manipulate bloom values.
-
bloom
<K,V> ReactiveBloomCommands<K,V> bloom(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Type Parameters:
K
- the type of keysV
- the type of the values added into the Bloom filter- Returns:
- the object to manipulate bloom values.
-
cuckoo
Gets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Type Parameters:
V
- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo values.
-
cuckoo
default <V> ReactiveCuckooCommands<String,V> cuckoo(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Type Parameters:
V
- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo values.
-
cuckoo
Gets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Type Parameters:
K
- the type of keysV
- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo values.
-
cuckoo
<K,V> ReactiveCuckooCommands<K,V> cuckoo(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Type Parameters:
K
- the type of keysV
- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo values.
-
countmin
Gets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Type Parameters:
V
- the type of the values added into the count-min sketches- Returns:
- the object to manipulate count-min sketches.
-
countmin
default <V> ReactiveCountMinCommands<String,V> countmin(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Type Parameters:
V
- the type of the values added into the count-min sketches- Returns:
- the object to manipulate count-min sketches.
-
countmin
Gets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Type Parameters:
K
- the type of keysV
- the type of the values added into the count-min sketches- Returns:
- the object to manipulate count-min sketches.
-
countmin
<K,V> ReactiveCountMinCommands<K,V> countmin(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Type Parameters:
K
- the type of keysV
- the type of the values added into the count-min sketches- Returns:
- the object to manipulate count-min sketches.
-
topk
Gets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Type Parameters:
V
- the type of the values added into the top-k lists- Returns:
- the object to manipulate top-k lists.
-
topk
default <V> ReactiveTopKCommands<String,V> topk(com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Type Parameters:
V
- the type of the values added into the top-k lists- Returns:
- the object to manipulate top-k lists.
-
topk
Gets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Type Parameters:
K
- the type of keysV
- the type of the values added into the top-k lists- Returns:
- the object to manipulate top-k lists.
-
topk
<K,V> ReactiveTopKCommands<K,V> topk(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Gets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Type Parameters:
K
- the type of keysV
- the type of the values added into the top-k lists- Returns:
- the object to manipulate top-k lists.
-
graph
@Experimental("The Redis graph support is experimental") default ReactiveGraphCommands<String> graph()Gets the object to manipulate graphs. This group requires the RedisGraph module.- Returns:
- the object to manipulate graphs lists.
-
graph
@Experimental("The Redis graph support is experimental") <K> ReactiveGraphCommands<K> graph(Class<K> redisKeyType) Gets the object to manipulate graphs. This group requires the RedisGraph module.- Type Parameters:
K
- the type of keys- Returns:
- the object to manipulate graphs lists.
-
search
@Experimental("The Redis search support is experimental") @Deprecated <K> ReactiveSearchCommands<K> search(Class<K> redisKeyType) Deprecated.Use the variant without parameter, as the index name must be a string.Gets the object to emit commands from thesearch
group. This group requires the RedisSearch module.- Type Parameters:
K
- the type of keys- Returns:
- the object to search documents
-
search
@Experimental("The Redis Search support is experimental") default ReactiveSearchCommands<String> search()Gets the object to emit commands from thesearch
group. This group requires the RedisSearch module.- Returns:
- the object to search documents
-
autosuggest
@Experimental("The Redis auto-suggest support is experimental") <K> ReactiveAutoSuggestCommands<K> autosuggest(Class<K> redisKeyType) Gets the object to emit commands from theauto-suggest
group. This group requires the RedisSearch module.- Type Parameters:
K
- the type of keys- Returns:
- the object to get suggestions
-
autosuggest
@Experimental("The Redis auto-suggest support is experimental") <K> ReactiveAutoSuggestCommands<K> autosuggest(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to emit commands from theauto-suggest
group. This group requires the RedisSearch module.- Type Parameters:
K
- the type of keys- Returns:
- the object to get suggestions
-
autosuggest
@Experimental("The Redis auto-suggest support is experimental") default ReactiveAutoSuggestCommands<String> autosuggest()Gets the object to emit commands from theauto-suggest
group. This group requires the RedisSearch module.- Returns:
- the object to get suggestions
-
timeseries
@Experimental("The Redis time series support is experimental") <K> ReactiveTimeSeriesCommands<K> timeseries(Class<K> redisKeyType) Gets the object to emit commands from thetime series
group. This group requires the Redis Time Series module.- Type Parameters:
K
- the type of keys- Returns:
- the object to manipulate time series
-
timeseries
@Experimental("The Redis time series support is experimental") <K> ReactiveTimeSeriesCommands<K> timeseries(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to emit commands from thetime series
group. This group requires the Redis Time Series module.- Type Parameters:
K
- the type of keys- Returns:
- the object to manipulate time series
-
timeseries
@Experimental("The Redis time series support is experimental") default ReactiveTimeSeriesCommands<String> timeseries()Gets the object to emit commands from thetime series
group. This group requires the Redis Time Series module.- Returns:
- the object to manipulate time series
-
execute
io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response> execute(String command, String... args) Executes a command. This method is used to execute commands not offered by the API.- Parameters:
command
- the command nameargs
- the parameters, encoded as String.- Returns:
- the response
-
execute
io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response> execute(io.vertx.mutiny.redis.client.Command command, String... args) Executes a command. This method is used to execute commands not offered by the API.- Parameters:
command
- the commandargs
- the parameters, encoded as String.- Returns:
- the response
-
execute
io.smallrye.mutiny.Uni<io.vertx.mutiny.redis.client.Response> execute(io.vertx.redis.client.Command command, String... args) Executes a command. This method is used to execute commands not offered by the API.- Parameters:
command
- the commandargs
- the parameters, encoded as String.- Returns:
- the response
-
getRedis
io.vertx.mutiny.redis.client.Redis getRedis()- Returns:
- the underlying Redis client.
-