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.HSetCommandgiven aMapof field values.forKey(ByteBuffer key) Applies the key.Disable upsert.booleanisUpsert()ofField(ByteBuffer field) Applies a field.value(ByteBuffer value) Creates a newReactiveHashCommands.HSetCommandgiven akey.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
-
value
Creates a newReactiveHashCommands.HSetCommandgiven akey.- Parameters:
value- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetCommandforkey.
-
fieldValues
public static ReactiveHashCommands.HSetCommand fieldValues(Map<ByteBuffer, ByteBuffer> fieldValueMap) Creates a newReactiveHashCommands.HSetCommandgiven aMapof field values.- Parameters:
fieldValueMap- must not be null.- Returns:
- a new
ReactiveHashCommands.HSetCommandfor aMapof 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.HSetCommandwith 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.HSetCommandwith key applied.
-
ifValueNotExists
Disable upsert. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveHashCommands.HSetCommandwith upsert disabled.
-
isUpsert
public boolean isUpsert()- Returns:
-
getFieldValueMap
- Returns:
- never null.
-