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:
- 4.0
- Author:
- Viktoriya Kutsarova
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfrom(ByteBuffer key) Applies the hash key.@Nullable ExpirationsetWithConditionAndExpiration(Map<ByteBuffer, ByteBuffer> fieldValueMap, RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Creates a newReactiveHashCommands.HSetExCommandfor setting field-value pairs with condition and expiration.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
setWithConditionAndExpiration
public static ReactiveHashCommands.HSetExCommand setWithConditionAndExpiration(Map<ByteBuffer, ByteBuffer> fieldValueMap, RedisHashCommands.HashFieldSetOption condition, @Nullable Expiration expiration) Creates a newReactiveHashCommands.HSetExCommandfor 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 optional expiration to apply.- 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.HSetExCommandwith key applied.
-
getFieldValueMap
- Returns:
- the field-value map.
-
getCondition
- Returns:
- the condition for setting fields.
-
getExpiration
- Returns:
- the expiration to apply.
-