Class ReactiveStringCommands.SetCommand
java.lang.Object
io.valkey.springframework.data.valkey.connection.ReactiveValkeyConnection.KeyCommand
io.valkey.springframework.data.valkey.connection.ReactiveStringCommands.SetCommand
- All Implemented Interfaces:
ReactiveValkeyConnection.Command
- Enclosing interface:
- ReactiveStringCommands
SET command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexpiring(Expiration expiration) AppliesExpiration.Deprecated.@Nullable ByteBuffergetValue()set(ByteBuffer key) Creates a newReactiveStringCommands.SetCommandgiven a key.value(ByteBuffer value) Applies the value.withCondition(SetCondition condition) AppliesSetCondition.Deprecated.since 4.1 in favor ofwithCondition(SetCondition).Methods inherited from class io.valkey.springframework.data.valkey.connection.ReactiveValkeyConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.valkey.springframework.data.valkey.connection.ReactiveValkeyConnection.Command
getName
-
Method Details
-
set
Creates a newReactiveStringCommands.SetCommandgiven a key.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveStringCommands.SetCommandfor a key.
-
value
Applies the value. Constructs a new command instance with all previously configured properties.- Parameters:
value- must not be null.- Returns:
- a new
ReactiveStringCommands.SetCommandwith value applied.
-
expiring
AppliesExpiration. Constructs a new command instance with all previously configured properties.- Parameters:
expiration- must not be null.- Returns:
- a new
ReactiveStringCommands.SetCommandwithExpirationapplied.
-
withSetOption
@Deprecated(since="4.1") public ReactiveStringCommands.SetCommand withSetOption(ValkeyStringCommands.SetOption option) Deprecated.since 4.1 in favor ofwithCondition(SetCondition).AppliesValkeyStringCommands.SetOptionandSetCondition. Constructs a new command instance with all previously configured properties.- Parameters:
option- must not be null.- Returns:
- a new
ReactiveStringCommands.SetCommandwithValkeyStringCommands.SetOptionapplied.
-
withCondition
AppliesSetCondition. Constructs a new command instance with all previously configured properties.- Parameters:
condition- must not be null.- Returns:
- a new
ReactiveStringCommands.SetCommandwithSetConditionapplied. - Since:
- 4.1
-
getValue
- Returns:
- the value to set.
-
getExpiration
- Returns:
- optional expiration.
-
getOption
Deprecated.since 4.1 in favor ofgetCondition(). -
getCondition
- Returns:
- optional command condition.
-
getCondition().