Class ReactiveHashCommands.HSetCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveHashCommands.HSetCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveHashCommands
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfieldValues
(Map<ByteBuffer, ByteBuffer> fieldValueMap) Creates a newReactiveHashCommands.HSetCommand
given aMap
of field values.forKey
(ByteBuffer key) Applies the key.Disable upsert.boolean
isUpsert()
ofField
(ByteBuffer field) Applies a field.value
(ByteBuffer value) Creates a newReactiveHashCommands.HSetCommand
given akey
.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
value
Creates a newReactiveHashCommands.HSetCommand
given akey
.- Parameters:
value
- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetCommand
forkey
.
-
fieldValues
public static ReactiveHashCommands.HSetCommand fieldValues(Map<ByteBuffer, ByteBuffer> fieldValueMap) Creates a newReactiveHashCommands.HSetCommand
given aMap
of field values.- Parameters:
fieldValueMap
- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetCommand
for aMap
of field values.
-
ofField
Applies a field. Constructs a new command instance with all previously configured properties.- Parameters:
field
- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetCommand
with field applied.
-
forKey
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetCommand
with key applied.
-
ifValueNotExists
Disable upsert. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveHashCommands.HSetCommand
with upsert disabled.
-
isUpsert
public boolean isUpsert()- Returns:
-
getFieldValueMap
- Returns:
- never null.
-