Class BlockingTransactionalHashCommandsImpl<K,F,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
-
- io.quarkus.redis.runtime.datasource.BlockingTransactionalHashCommandsImpl<K,F,V>
-
- All Implemented Interfaces:
TransactionalHashCommands<K,F,V>
,TransactionalRedisCommands
public class BlockingTransactionalHashCommandsImpl<K,F,V> extends AbstractTransactionalRedisCommandGroup implements TransactionalHashCommands<K,F,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
-
Constructor Summary
Constructors Constructor Description BlockingTransactionalHashCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalHashCommands<K,F,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
hdel(K key, F... fields)
Execute the command HDEL.void
hexists(K key, F field)
Execute the command HEXISTS.void
hget(K key, F field)
Execute the command HGET.void
hgetall(K key)
Execute the command HGETALL.void
hincrby(K key, F field, long amount)
Execute the command HINCRBY.void
hincrbyfloat(K key, F field, double amount)
Execute the command HINCRBYFLOAT.void
hkeys(K key)
Execute the command HKEYS.void
hlen(K key)
Execute the command HLEN.void
hmget(K key, F... fields)
Execute the command HMGET.void
hmset(K key, Map<F,V> map)
Deprecated.void
hrandfield(K key)
Execute the command HRANDFIELD.void
hrandfield(K key, long count)
Execute the command HRANDFIELD.void
hrandfieldWithValues(K key, long count)
Execute the command HRANDFIELD.void
hset(K key, F field, V value)
Execute the command HSET.void
hset(K key, Map<F,V> map)
Execute the command HSET.void
hsetnx(K key, F field, V value)
Execute the command HSETNX.void
hstrlen(K key, F field)
Execute the command HSTRLEN.void
hvals(K key)
Execute the command HVALS.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
getDataSource
-
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.TransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
BlockingTransactionalHashCommandsImpl
public BlockingTransactionalHashCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalHashCommands<K,F,V> reactive, Duration timeout)
-
-
Method Detail
-
hdel
public void hdel(K key, F... fields)
Description copied from interface:TransactionalHashCommands
Execute the command HDEL. Summary: Delete one or more hash fields Group: hash Requires Redis 2.0.0- Specified by:
hdel
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the key
-
hexists
public void hexists(K key, F field)
Description copied from interface:TransactionalHashCommands
Execute the command HEXISTS. Summary: Determine if a hash field exists Group: hash Requires Redis 2.0.0- Specified by:
hexists
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the value
-
hget
public void hget(K key, F field)
Description copied from interface:TransactionalHashCommands
Execute the command HGET. Summary: Get the value of a hash field Group: hash Requires Redis 2.0.0- Specified by:
hget
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the value
-
hincrby
public void hincrby(K key, F field, long amount)
Description copied from interface:TransactionalHashCommands
Execute 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:
hincrby
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the value
-
hincrbyfloat
public void hincrbyfloat(K key, F field, double amount)
Description copied from interface:TransactionalHashCommands
Execute 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:
hincrbyfloat
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the value
-
hgetall
public void hgetall(K key)
Description copied from interface:TransactionalHashCommands
Execute the command HGETALL. Summary: Get all the fields and values in a hash Group: hash Requires Redis 2.0.0- Specified by:
hgetall
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the key
-
hkeys
public void hkeys(K key)
Description copied from interface:TransactionalHashCommands
Execute the command HKEYS. Summary: Get all the fields in a hash Group: hash Requires Redis 2.0.0- Specified by:
hkeys
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the key
-
hlen
public void hlen(K key)
Description copied from interface:TransactionalHashCommands
Execute the command HLEN. Summary: Get the number of fields in a hash Group: hash Requires Redis 2.0.0- Specified by:
hlen
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the key
-
hmget
public void hmget(K key, F... fields)
Description copied from interface:TransactionalHashCommands
Execute the command HMGET. Summary: Get the values of all the given hash fields Group: hash Requires Redis 2.0.0- Specified by:
hmget
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfields
- the fields
-
hmset
@Deprecated public void hmset(K key, Map<F,V> map)
Deprecated.Description copied from interface:TransactionalHashCommands
Execute the command HMSET. Summary: Set multiple hash fields to multiple values Group: hash Requires Redis 2.0.0- Specified by:
hmset
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keymap
- the key/value map to set
-
hrandfield
public void hrandfield(K key)
Description copied from interface:TransactionalHashCommands
Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0- Specified by:
hrandfield
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the key
-
hrandfield
public void hrandfield(K key, long count)
Description copied from interface:TransactionalHashCommands
Execute the command HRANDFIELD. Summary: Get one or multiple random fields from a hash Group: hash Requires Redis 6.2.0- Specified by:
hrandfield
in interfaceTransactionalHashCommands<K,F,V>
- 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.
-
hrandfieldWithValues
public void hrandfieldWithValues(K key, long count)
Description copied from interface:TransactionalHashCommands
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- Specified by:
hrandfieldWithValues
in interfaceTransactionalHashCommands<K,F,V>
- 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
.
-
hset
public void hset(K key, F field, V value)
Description copied from interface:TransactionalHashCommands
Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0- Specified by:
hset
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the fieldvalue
- the value
-
hset
public void hset(K key, Map<F,V> map)
Description copied from interface:TransactionalHashCommands
Execute the command HSET. Summary: Set the string value of a hash field Group: hash Requires Redis 2.0.0- Specified by:
hset
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keymap
- the set of key -> value to add to the hash
-
hsetnx
public void hsetnx(K key, F field, V value)
Description copied from interface:TransactionalHashCommands
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- Specified by:
hsetnx
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the valuevalue
- the value
-
hstrlen
public void hstrlen(K key, F field)
Description copied from interface:TransactionalHashCommands
Execute the command HSTRLEN. Summary: Get the length of the value of a hash field Group: hash Requires Redis 3.2.0- Specified by:
hstrlen
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the keyfield
- the value
-
hvals
public void hvals(K key)
Description copied from interface:TransactionalHashCommands
Execute the command HVALS. Summary: Get all the values in a hash Group: hash Requires Redis 2.0.0- Specified by:
hvals
in interfaceTransactionalHashCommands<K,F,V>
- Parameters:
key
- the key
-
-