Class ReactiveTransactionalHashCommandsImpl<K,F,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
-
- io.quarkus.redis.runtime.datasource.ReactiveTransactionalHashCommandsImpl<K,F,V>
-
- All Implemented Interfaces:
ReactiveTransactionalHashCommands<K,F,V>,ReactiveTransactionalRedisCommands
public class ReactiveTransactionalHashCommandsImpl<K,F,V> extends AbstractTransactionalCommands implements ReactiveTransactionalHashCommands<K,F,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx
-
-
Constructor Summary
Constructors Constructor Description ReactiveTransactionalHashCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveHashCommandsImpl<K,F,V> reactive, TransactionHolder tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>hdel(K key, F... fields)Execute the command HDEL.io.smallrye.mutiny.Uni<Void>hexists(K key, F field)Execute the command HEXISTS.io.smallrye.mutiny.Uni<Void>hget(K key, F field)Execute the command HGET.io.smallrye.mutiny.Uni<Void>hgetall(K key)Execute the command HGETALL.io.smallrye.mutiny.Uni<Void>hincrby(K key, F field, long amount)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>hkeys(K key)Execute the command HKEYS.io.smallrye.mutiny.Uni<Void>hlen(K key)Execute the command HLEN.io.smallrye.mutiny.Uni<Void>hmget(K key, F... fields)Execute the command HMGET.io.smallrye.mutiny.Uni<Void>hmset(K key, Map<F,V> map)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>hset(K key, F field, V value)Execute the command HSET.io.smallrye.mutiny.Uni<Void>hset(K key, Map<F,V> map)Execute the command HSET.io.smallrye.mutiny.Uni<Void>hsetnx(K key, F field, V value)Execute the command HSETNX.io.smallrye.mutiny.Uni<Void>hstrlen(K key, F field)Execute the command HSTRLEN.io.smallrye.mutiny.Uni<Void>hvals(K key)Execute the command HVALS.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscard
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
ReactiveTransactionalHashCommandsImpl
public ReactiveTransactionalHashCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveHashCommandsImpl<K,F,V> reactive, TransactionHolder tx)
-
-
Method Detail
-
hdel
public io.smallrye.mutiny.Uni<Void> hdel(K key, F... fields)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HDEL. Summary: Delete one or more hash fields Group: hash Requires Redis 2.0.0- Specified by:
hdelin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hexists
public io.smallrye.mutiny.Uni<Void> hexists(K key, F field)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HEXISTS. Summary: Determine if a hash field exists Group: hash Requires Redis 2.0.0- Specified by:
hexistsin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hget
public io.smallrye.mutiny.Uni<Void> hget(K key, F field)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HGET. Summary: Get the value of a hash field Group: hash Requires Redis 2.0.0- Specified by:
hgetin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hincrby
public io.smallrye.mutiny.Uni<Void> hincrby(K key, F field, long amount)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HINCRBY. Summary: Increment the integer value of a hash field by the given number Group: hash Requires Redis 2.0.0- Specified by:
hincrbyin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hincrbyfloat
public io.smallrye.mutiny.Uni<Void> hincrbyfloat(K key, F field, double amount)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HINCRBYFLOAT. Summary: Increment the float value of a hash field by the given amount Group: hash Requires Redis 2.6.0- Specified by:
hincrbyfloatin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hgetall
public io.smallrye.mutiny.Uni<Void> hgetall(K key)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HGETALL. Summary: Get all the fields and values in a hash Group: hash Requires Redis 2.0.0- Specified by:
hgetallin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hkeys
public io.smallrye.mutiny.Uni<Void> hkeys(K key)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HKEYS. Summary: Get all the fields in a hash Group: hash Requires Redis 2.0.0- Specified by:
hkeysin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hlen
public io.smallrye.mutiny.Uni<Void> hlen(K key)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HLEN. Summary: Get the number of fields in a hash Group: hash Requires Redis 2.0.0- Specified by:
hlenin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hmget
public io.smallrye.mutiny.Uni<Void> hmget(K key, F... fields)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HMGET. Summary: Get the values of all the given hash fields Group: hash Requires Redis 2.0.0- Specified by:
hmgetin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfields- the fields- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hmset
@Deprecated public io.smallrye.mutiny.Uni<Void> hmset(K key, Map<F,V> map)
Deprecated.Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HMSET. Summary: Set multiple hash fields to multiple values Group: hash Requires Redis 2.0.0- Specified by:
hmsetin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keymap- the key/value map to set
-
hrandfield
public io.smallrye.mutiny.Uni<Void> hrandfield(K key)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0- Specified by:
hrandfieldin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hrandfield
public io.smallrye.mutiny.Uni<Void> hrandfield(K key, long count)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0- Specified by:
hrandfieldin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keycount- the number of random key to retrieve. Ifcountis positive, the selected keys are distinct. Ifcountis negative, the produced list can contain duplicated keys.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hrandfieldWithValues
public io.smallrye.mutiny.Uni<Void> hrandfieldWithValues(K key, long count)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HRANDFIELD. Summary: Get one or multiple random fields and their associated values from a hash Group: hash Requires Redis 6.2.0- Specified by:
hrandfieldWithValuesin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keycount- the number of random key to retrieve. Ifcountis positive, the selected keys are distinct. Ifcountis negative, the produced list can contain duplicated keys. These duplicates are not included in the producedMap.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hset
public io.smallrye.mutiny.Uni<Void> hset(K key, F field, V value)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0- Specified by:
hsetin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the fieldvalue- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hset
public io.smallrye.mutiny.Uni<Void> hset(K key, Map<F,V> map)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0- Specified by:
hsetin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keymap- the set of key -> value to add to the hash- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hsetnx
public io.smallrye.mutiny.Uni<Void> hsetnx(K key, F field, V value)
Description copied from interface:ReactiveTransactionalHashCommandsExecute 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- Specified by:
hsetnxin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the valuevalue- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hstrlen
public io.smallrye.mutiny.Uni<Void> hstrlen(K key, F field)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HSTRLEN. Summary: Get the length of the value of a hash field Group: hash Requires Redis 3.2.0- Specified by:
hstrlenin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the keyfield- the value- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
hvals
public io.smallrye.mutiny.Uni<Void> hvals(K key)
Description copied from interface:ReactiveTransactionalHashCommandsExecute the command HVALS. Summary: Get all the values in a hash Group: hash Requires Redis 2.0.0- Specified by:
hvalsin interfaceReactiveTransactionalHashCommands<K,F,V>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
-