Class ReactiveHashCommands.HSetExCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveHashCommands.HSetExCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveHashCommands
HSETEX
ReactiveRedisConnection.Command
.- Since:
- 2.0
- Author:
- Viktoriya Kutsarova
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(ByteBuffer key) Applies the hash key.setWithConditionAndExpiration
(Map<ByteBuffer, ByteBuffer> fieldValueMap, RedisHashCommands.HashFieldSetOption condition, Expiration expiration) Creates a newReactiveHashCommands.HSetExCommand
for setting field-value pairs with condition and expiration.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
setWithConditionAndExpiration
public static ReactiveHashCommands.HSetExCommand setWithConditionAndExpiration(Map<ByteBuffer, ByteBuffer> fieldValueMap, RedisHashCommands.HashFieldSetOption condition, Expiration expiration) Creates a newReactiveHashCommands.HSetExCommand
for setting field-value pairs with condition and expiration.- Parameters:
fieldValueMap
- the field-value pairs to set; must not be null.condition
- the condition for setting fields; must not be null.expiration
- the expiration to apply; must not be null.- Returns:
- new instance of
ReactiveHashCommands.HSetExCommand
.
-
from
Applies the hash key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetExCommand
with key applied.
-
getFieldValueMap
- Returns:
- the field-value map.
-
getCondition
- Returns:
- the condition for setting fields.
-
getExpiration
- Returns:
- the expiration to apply.
-