Package io.quarkus.redis.datasource.hash
Interface ReactiveTransactionalHashCommands<K,F,V>
- All Superinterfaces:
ReactiveTransactionalRedisCommands
- All Known Implementing Classes:
ReactiveTransactionalHashCommandsImpl
public interface ReactiveTransactionalHashCommands<K,F,V>
extends ReactiveTransactionalRedisCommands
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
Execute the command HDEL.io.smallrye.mutiny.Uni<Void>
Execute the command HEXISTS.io.smallrye.mutiny.Uni<Void>
Execute the command HGET.io.smallrye.mutiny.Uni<Void>
Execute the command HGETALL.io.smallrye.mutiny.Uni<Void>
Execute the command HINCRBY.io.smallrye.mutiny.Uni<Void>
hincrbyfloat
(K key, F field, double amount) Execute the command HINCRBYFLOAT.io.smallrye.mutiny.Uni<Void>
Execute the command HKEYS.io.smallrye.mutiny.Uni<Void>
Execute the command HLEN.io.smallrye.mutiny.Uni<Void>
Execute the command HMGET.io.smallrye.mutiny.Uni<Void>
Deprecated.io.smallrye.mutiny.Uni<Void>
hrandfield
(K key) Execute the command HRANDFIELD.io.smallrye.mutiny.Uni<Void>
hrandfield
(K key, long count) Execute the command HRANDFIELD.io.smallrye.mutiny.Uni<Void>
hrandfieldWithValues
(K key, long count) Execute the command HRANDFIELD.io.smallrye.mutiny.Uni<Void>
Execute the command HSET.io.smallrye.mutiny.Uni<Void>
Execute the command HSET.io.smallrye.mutiny.Uni<Void>
Execute the command HSETNX.io.smallrye.mutiny.Uni<Void>
Execute the command HSTRLEN.io.smallrye.mutiny.Uni<Void>
Execute the command HVALS.Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
Method Details
-
hdel
Execute the command HDEL. Summary: Delete one or more hash fields Group: hash Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hexists
Execute the command HEXISTS. Summary: Determine if a hash field exists Group: hash Requires Redis 2.0.0- Parameters:
key
- the keyfield
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hget
Execute the command HGET. Summary: Get the value of a hash field Group: hash Requires Redis 2.0.0- Parameters:
key
- the keyfield
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hincrby
Execute the command HINCRBY. Summary: Increment the integer value of a hash field by the given number Group: hash Requires Redis 2.0.0- Parameters:
key
- the keyfield
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hincrbyfloat
Execute the command HINCRBYFLOAT. Summary: Increment the float value of a hash field by the given amount Group: hash Requires Redis 2.6.0- Parameters:
key
- the keyfield
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hgetall
Execute the command HGETALL. Summary: Get all the fields and values in a hash Group: hash Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hkeys
Execute the command HKEYS. Summary: Get all the fields in a hash Group: hash Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hlen
Execute the command HLEN. Summary: Get the number of fields in a hash Group: hash Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hmget
Execute the command HMGET. Summary: Get the values of all the given hash fields Group: hash Requires Redis 2.0.0- Parameters:
key
- the keyfields
- the fields- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hmset
Deprecated.Usehset(Object, Map)
with multiple field-value pairs.Execute the command HMSET. Summary: Set multiple hash fields to multiple values Group: hash Requires Redis 2.0.0- Parameters:
key
- the keymap
- the key/value map to set
-
hrandfield
Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hrandfield
Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0- Parameters:
key
- the keycount
- the number of random key to retrieve. Ifcount
is positive, the selected keys are distinct. Ifcount
is negative, the produced list can contain duplicated keys.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hrandfieldWithValues
Execute the command HRANDFIELD. Summary: Get one or multiple random fields and their associated values from a hash Group: hash Requires Redis 6.2.0- Parameters:
key
- the keycount
- the number of random key to retrieve. Ifcount
is positive, the selected keys are distinct. Ifcount
is negative, the produced list can contain duplicated keys. These duplicates are not included in the producedMap
.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hset
Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0- Parameters:
key
- the keyfield
- the fieldvalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hset
Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0- Parameters:
key
- the keymap
- the set of key -> value to add to the hash- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hsetnx
Execute the command HSETNX. Summary: Set the value of a hash field, only if the field does not exist Group: hash Requires Redis 2.0.0- Parameters:
key
- the keyfield
- the valuevalue
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hstrlen
Execute the command HSTRLEN. Summary: Get the length of the value of a hash field Group: hash Requires Redis 3.2.0- Parameters:
key
- the keyfield
- the value- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hvals
Execute the command HVALS. Summary: Get all the values in a hash Group: hash Requires Redis 2.0.0- Parameters:
key
- the key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hset(Object, Map)
with multiple field-value pairs.