Class BlockingRedisDataSourceImpl
- All Implemented Interfaces:
RedisDataSource
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final io.vertx.mutiny.redis.client.RedisConnection(package private) final ReactiveRedisDataSourceImpl -
Constructor Summary
ConstructorsConstructorDescriptionBlockingRedisDataSourceImpl(ReactiveRedisDataSourceImpl reactive, Duration timeout) BlockingRedisDataSourceImpl(io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.redis.client.Redis redis, io.vertx.mutiny.redis.client.RedisAPI api, Duration timeout) BlockingRedisDataSourceImpl(io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.redis.client.Redis redis, io.vertx.mutiny.redis.client.RedisConnection connection, Duration timeout) -
Method Summary
Modifier and TypeMethodDescription<K> AutoSuggestCommands<K>autosuggest(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to emit commands from theauto-suggestgroup.<K> AutoSuggestCommands<K>autosuggest(Class<K> redisKeyType) Gets the object to emit commands from theauto-suggestgroup.<K> BitMapCommands<K>bitmap(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to execute commands manipulating bitmap data structures.<K> BitMapCommands<K>Gets the object to execute commands manipulating bitmap data structures.<K,V> BloomCommands<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.<K,V> BloomCommands<K, V> Gets the object to manipulate Bloom filters.<K,V> CountMinCommands<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.<K,V> CountMinCommands<K, V> Gets the object to manipulate Count-Min sketches.<K,V> CuckooCommands<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.<K,V> CuckooCommands<K, V> Gets the object to manipulate Cuckoo filters.io.vertx.mutiny.redis.client.ResponseExecutes a command.io.vertx.mutiny.redis.client.ResponseExecutes a command.io.vertx.mutiny.redis.client.ResponseExecutes a command.voidflushall()Execute the command FLUSHALL.<K1,V1> GeoCommands<K1, V1> geo(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Gets the object to execute commands manipulating geo items (a.k.a.<K1,V1> GeoCommands<K1, V1> Gets the object to execute commands manipulating geo items (a.k.a.<K> GraphCommands<K>Gets the object to manipulate graphs.<K,F, V> HashCommands<K, F, V> hash(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<F> typeOfField, com.fasterxml.jackson.core.type.TypeReference<V> typeOfValue) Gets the object to execute commands manipulating hashes (a.k.a.<K1,F, V1> HashCommands<K1, F, V1> Gets the object to execute commands manipulating hashes (a.k.a.<K1,V1> HyperLogLogCommands<K1, V1> hyperloglog(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Gets the object to execute commands manipulating hyperloglog data structures.<K1,V1> HyperLogLogCommands<K1, V1> hyperloglog(Class<K1> redisKeyType, Class<V1> memberType) Gets the object to execute commands manipulating hyperloglog data structures.<K> JsonCommands<K>json(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to manipulate JSON values.<K> JsonCommands<K>Gets the object to manipulate JSON values.<K1> KeyCommands<K1>key(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType) Gets the object to execute commands manipulating keys and expiration times.<K1> KeyCommands<K1>Gets the object to execute commands manipulating keys and expiration times.<K1,V1> ListCommands<K1, V1> list(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Gets the object to execute commands manipulating lists.<K1,V1> ListCommands<K1, V1> Gets the object to execute commands manipulating lists.<V> PubSubCommands<V>pubsub(com.fasterxml.jackson.core.type.TypeReference<V> messageType) Gets the objects to publish and receive messages.<V> PubSubCommands<V>Gets the objects to publish and receive messages.<K> SearchCommands<K>Gets the object to emit commands from thesearchgroup.voidselect(long index) Execute the command SELECT.<K1,V1> SetCommands<K1, V1> set(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Gets the object to execute commands manipulating sets.<K1,V1> SetCommands<K1, V1> Gets the object to execute commands manipulating sets.<K1,V1> SortedSetCommands<K1, V1> sortedSet(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> valueType) Gets the object to execute commands manipulating sorted sets.<K1,V1> SortedSetCommands<K1, V1> Gets the object to execute commands manipulating sorted sets.<K,F, V> StreamCommands<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.<K,F, V> StreamCommands<K, F, V> Gets the object to execute commands manipulating streams.<K1,V1> StringCommands<K1, V1> Gets the object to execute commands manipulating stored strings.<K> TimeSeriesCommands<K>timeseries(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Gets the object to emit commands from thetime seriesgroup.<K> TimeSeriesCommands<K>timeseries(Class<K> redisKeyType) Gets the object to emit commands from thetime seriesgroup.<K,V> TopKCommands<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.<K,V> TopKCommands<K, V> Gets the object to manipulate Top-K list.<K,V> ValueCommands<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.<K,V> ValueCommands<K, V> Gets the object to execute commands manipulating stored strings.voidwithConnection(Consumer<RedisDataSource> consumer) Retrieves aRedisDataSourceusing a single connection with the Redis server.Retrieves aRedisDataSourceenqueuing commands in a Redis Transaction (MULTI).withTransaction(Consumer<TransactionalRedisDataSource> ds, String... watchedKeys) Retrieves aRedisDataSourceenqueuing commands in a Redis Transaction (MULTI).withTransaction(Function<RedisDataSource, I> preTxBlock, BiConsumer<I, TransactionalRedisDataSource> tx, String... watchedKeys) Retrieves aRedisDataSourceenqueuing commands in a Redis Transaction (MULTI).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisDataSource
autosuggest, bitmap, bloom, bloom, countmin, countmin, cuckoo, cuckoo, geo, geo, graph, hash, hash, hyperloglog, hyperloglog, json, key, list, list, search, set, set, sortedSet, sortedSet, stream, stream, string, timeseries, topk, topk, value, value
-
Field Details
-
reactive
-
connection
final io.vertx.mutiny.redis.client.RedisConnection connection
-
-
Constructor Details
-
BlockingRedisDataSourceImpl
public BlockingRedisDataSourceImpl(io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.redis.client.Redis redis, io.vertx.mutiny.redis.client.RedisAPI api, Duration timeout) -
BlockingRedisDataSourceImpl
-
BlockingRedisDataSourceImpl
public BlockingRedisDataSourceImpl(io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.redis.client.Redis redis, io.vertx.mutiny.redis.client.RedisConnection connection, Duration timeout)
-
-
Method Details
-
withTransaction
Description copied from interface:RedisDataSourceRetrieves aRedisDataSourceenqueuing 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 completes.The results of the commands are retrieved using the returned
TransactionResult.The user can discard a transaction using the
TransactionalRedisDataSource.discard()method. In this case, the producedTransactionResultwill be empty.- Specified by:
withTransactionin interfaceRedisDataSource- Parameters:
ds- the consumer receiving the transactional redis data source. The enqueued commands are only executed at the end of the block.
-
withTransaction
public TransactionResult withTransaction(Consumer<TransactionalRedisDataSource> ds, String... watchedKeys) Description copied from interface:RedisDataSourceRetrieves aRedisDataSourceenqueuing 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 completes.The results of the commands are retrieved using the returned
TransactionResult.The user can discard a transaction using the
TransactionalRedisDataSource.discard()method. In this case, the producedTransactionResultwill be empty.- Specified by:
withTransactionin interfaceRedisDataSource- Parameters:
ds- 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
public <I> OptimisticLockingTransactionResult<I> withTransaction(Function<RedisDataSource, I> preTxBlock, BiConsumer<I, TransactionalRedisDataSource> tx, String... watchedKeys) Description copied from interface:RedisDataSourceRetrieves aRedisDataSourceenqueuing 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 thenullitem.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 EXECThe
preTxBlockreturns aRedisDataSource. The produced value is received by thetxblock, 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 thepreTxBlockmust used the passed (single-connection)RedisDataSourceinstance.If the
preTxBlockthrows an exception, the transaction is not executed, and the returnedOptimisticLockingTransactionResultis 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 producedOptimisticLockingTransactionResultwill be empty.- Specified by:
withTransactionin interfaceRedisDataSourcetx- 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.
-
withConnection
Description copied from interface:RedisDataSourceRetrieves aRedisDataSourceusing a single connection with the Redis server. The connection is acquired from the pool, and released then the consumer completes.- Specified by:
withConnectionin interfaceRedisDataSource- Parameters:
consumer- the consumer receiving the connection and returning when the connection can be released.
-
select
public void select(long index) Description copied from interface:RedisDataSourceExecute 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
RedisDataSource.withConnection(Consumer)block.- Specified by:
selectin interfaceRedisDataSource- Parameters:
index- the database index.
-
flushall
public void flushall()Description copied from interface:RedisDataSourceExecute the command FLUSHALL. Summary: Remove all keys from all databases Group: server Requires Redis 1.0.0- Specified by:
flushallin interfaceRedisDataSource
-
hash
public <K1,F, HashCommands<K1,V1> F, hashV1> (Class<K1> redisKeyType, Class<F> typeOfField, Class<V1> typeOfValue) Description copied from interface:RedisDataSourceGets 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).- Specified by:
hashin interfaceRedisDataSource- Type Parameters:
K1- the type of the redis keyF- the type of the fields (map's keys)V1- the type of the value- Parameters:
redisKeyType- the class of the keystypeOfField- the class of the fieldstypeOfValue- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<K, V>).
-
hash
public <K,F, HashCommands<K,V> F, hashV> (com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<F> typeOfField, com.fasterxml.jackson.core.type.TypeReference<V> typeOfValue) Description copied from interface:RedisDataSourceGets 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).- Specified by:
hashin interfaceRedisDataSource- 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 keystypeOfField- the class of the fieldstypeOfValue- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<K, V>).
-
geo
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}).Vrepresents the type of the member, i.e. the localized thing.- Specified by:
geoin interfaceRedisDataSource- Type Parameters:
K1- the type of the redis keyV1- 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
public <K1,V1> GeoCommands<K1,V1> geo(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}).Vrepresents the type of the member, i.e. the localized thing.- Specified by:
geoin interfaceRedisDataSource- Type Parameters:
K1- the type of the redis keyV1- the type of the member- Parameters:
redisKeyType- the class of the keysmemberType- the class of the members- Returns:
- the object to execute geo commands.
-
key
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating keys and expiration times.- Specified by:
keyin interfaceRedisDataSource- Type Parameters:
K1- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
key
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating keys and expiration times.- Specified by:
keyin interfaceRedisDataSource- Type Parameters:
K1- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
sortedSet
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating sorted sets.- Specified by:
sortedSetin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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
public <K1,V1> SortedSetCommands<K1,V1> sortedSet(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> valueType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating sorted sets.- Specified by:
sortedSetin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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.
-
string
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating stored strings.- Specified by:
stringin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating stored strings.NOTE: Instead of
string, this group is namedvalueto avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Specified by:
valuein interfaceRedisDataSource- 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
public <K,V> ValueCommands<K,V> value(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating stored strings.NOTE: Instead of
string, this group is namedvalueto avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Specified by:
valuein interfaceRedisDataSource- 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.
-
set
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating sets.- Specified by:
setin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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
public <K1,V1> SetCommands<K1,V1> set(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating sets.- Specified by:
setin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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.
-
list
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating lists.- Specified by:
listin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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
public <K1,V1> ListCommands<K1,V1> list(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating lists.- Specified by:
listin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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.
-
hyperloglog
public <K1,V1> HyperLogLogCommands<K1,V1> hyperloglog(Class<K1> redisKeyType, Class<V1> memberType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating hyperloglog data structures.- Specified by:
hyperloglogin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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
public <K1,V1> HyperLogLogCommands<K1,V1> hyperloglog(com.fasterxml.jackson.core.type.TypeReference<K1> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V1> memberType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating hyperloglog data structures.- Specified by:
hyperloglogin interfaceRedisDataSource- Type Parameters:
K1- the type of the keyV1- 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.
-
bitmap
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating bitmap data structures.- Specified by:
bitmapin interfaceRedisDataSource- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to manipulate bitmap data structures.
-
bitmap
Description copied from interface:RedisDataSourceGets the object to execute commands manipulating bitmap data structures.- Specified by:
bitmapin interfaceRedisDataSource- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to manipulate bitmap data structures.
-
stream
public <K,F, StreamCommands<K,V> F, streamV> (Class<K> redisKeyType, Class<F> fieldType, Class<V> valueType) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating streams.- Specified by:
streamin interfaceRedisDataSource- 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
public <K,F, StreamCommands<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) Description copied from interface:RedisDataSourceGets the object to execute commands manipulating streams.- Specified by:
streamin interfaceRedisDataSource- 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.
-
json
Description copied from interface:RedisDataSourceGets the object to manipulate JSON values. This group requires the RedisJSON module.- Specified by:
jsonin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate JSON values.
-
json
Description copied from interface:RedisDataSourceGets the object to manipulate JSON values. This group requires the RedisJSON module.- Specified by:
jsonin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate JSON values.
-
bloom
Description copied from interface:RedisDataSourceGets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Specified by:
bloomin interfaceRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the Bloom filter- Returns:
- the object to manipulate bloom filters.
-
bloom
public <K,V> BloomCommands<K,V> bloom(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Description copied from interface:RedisDataSourceGets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Specified by:
bloomin interfaceRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the Bloom filter- Returns:
- the object to manipulate bloom filters.
-
cuckoo
Description copied from interface:RedisDataSourceGets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Specified by:
cuckooin interfaceRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo filters.
-
cuckoo
public <K,V> CuckooCommands<K,V> cuckoo(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Description copied from interface:RedisDataSourceGets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Specified by:
cuckooin interfaceRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo filters.
-
countmin
Description copied from interface:RedisDataSourceGets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Specified by:
countminin interfaceRedisDataSource- 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
public <K,V> CountMinCommands<K,V> countmin(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Description copied from interface:RedisDataSourceGets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Specified by:
countminin interfaceRedisDataSource- 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
Description copied from interface:RedisDataSourceGets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Specified by:
topkin interfaceRedisDataSource- 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
public <K,V> TopKCommands<K,V> topk(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType, com.fasterxml.jackson.core.type.TypeReference<V> valueType) Description copied from interface:RedisDataSourceGets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Specified by:
topkin interfaceRedisDataSource- 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
Description copied from interface:RedisDataSourceGets the object to manipulate graphs. This group requires the RedisGraph module.- Specified by:
graphin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate graphs lists.
-
search
Description copied from interface:RedisDataSourceGets the object to emit commands from thesearchgroup. This group requires the RedisSearch module.- Specified by:
searchin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to search documents
-
autosuggest
Description copied from interface:RedisDataSourceGets the object to emit commands from theauto-suggestgroup. This group requires the RedisSearch module.- Specified by:
autosuggestin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to get suggestions
-
autosuggest
public <K> AutoSuggestCommands<K> autosuggest(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Description copied from interface:RedisDataSourceGets the object to emit commands from theauto-suggestgroup. This group requires the RedisSearch module.- Specified by:
autosuggestin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to get suggestions
-
timeseries
Description copied from interface:RedisDataSourceGets the object to emit commands from thetime seriesgroup. This group requires the Redis Time Series module.- Specified by:
timeseriesin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate time series
-
timeseries
public <K> TimeSeriesCommands<K> timeseries(com.fasterxml.jackson.core.type.TypeReference<K> redisKeyType) Description copied from interface:RedisDataSourceGets the object to emit commands from thetime seriesgroup. This group requires the Redis Time Series module.- Specified by:
timeseriesin interfaceRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate time series
-
pubsub
Description copied from interface:RedisDataSourceGets the objects to publish and receive messages.- Specified by:
pubsubin interfaceRedisDataSource- Type Parameters:
V- the type of message- Parameters:
messageType- the type of message- Returns:
- the object to publish and subscribe to Redis channels
-
pubsub
Description copied from interface:RedisDataSourceGets the objects to publish and receive messages.- Specified by:
pubsubin interfaceRedisDataSource- Type Parameters:
V- the type of message- Parameters:
messageType- the type of message- Returns:
- the object to publish and subscribe to Redis channels
-
execute
Description copied from interface:RedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceRedisDataSource- Parameters:
command- the command nameargs- the parameters, encoded as String.- Returns:
- the response
-
execute
public io.vertx.mutiny.redis.client.Response execute(io.vertx.mutiny.redis.client.Command command, String... args) Description copied from interface:RedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceRedisDataSource- Parameters:
command- the commandargs- the parameters, encoded as String.- Returns:
- the response
-
execute
public io.vertx.mutiny.redis.client.Response execute(io.vertx.redis.client.Command command, String... args) Description copied from interface:RedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceRedisDataSource- Parameters:
command- the commandargs- the parameters, encoded as String.- Returns:
- the response
-
getReactive
- Specified by:
getReactivein interfaceRedisDataSource- Returns:
- the reactive data source.
-