Class ReactiveStringCommands.SetCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveStringCommands.SetCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveStringCommands
SET command parameters.- Since:
- 2.0
- 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 ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.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(RedisStringCommands.SetOption option) Deprecated.since 4.1 in favor ofwithCondition(SetCondition).AppliesRedisStringCommands.SetOptionandSetCondition. Constructs a new command instance with all previously configured properties.- Parameters:
option- must not be null.- Returns:
- a new
ReactiveStringCommands.SetCommandwithRedisStringCommands.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().