public static class ReactiveStringCommands.SetCommand extends ReactiveRedisConnection.KeyCommand
SET
command parameters.Modifier and Type | Method and Description |
---|---|
ReactiveStringCommands.SetCommand |
expiring(Expiration expiration)
Applies
Expiration . |
Optional<Expiration> |
getExpiration() |
Optional<RedisStringCommands.SetOption> |
getOption() |
ByteBuffer |
getValue() |
static ReactiveStringCommands.SetCommand |
set(ByteBuffer key)
Creates a new
ReactiveStringCommands.SetCommand given a key. |
ReactiveStringCommands.SetCommand |
value(ByteBuffer value)
Applies the value.
|
ReactiveStringCommands.SetCommand |
withSetOption(RedisStringCommands.SetOption option)
Applies
RedisStringCommands.SetOption . |
getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public static ReactiveStringCommands.SetCommand set(ByteBuffer key)
ReactiveStringCommands.SetCommand
given a key.key
- must not be null.ReactiveStringCommands.SetCommand
for a key.public ReactiveStringCommands.SetCommand value(ByteBuffer value)
value
- must not be null.ReactiveStringCommands.SetCommand
with value applied.public ReactiveStringCommands.SetCommand expiring(Expiration expiration)
Expiration
. Constructs a new command instance with all previously configured properties.expiration
- must not be null.ReactiveStringCommands.SetCommand
with Expiration
applied.public ReactiveStringCommands.SetCommand withSetOption(RedisStringCommands.SetOption option)
RedisStringCommands.SetOption
. Constructs a new command instance with all previously configured properties.option
- must not be null.ReactiveStringCommands.SetCommand
with RedisStringCommands.SetOption
applied.@Nullable public ByteBuffer getValue()
public Optional<Expiration> getExpiration()
public Optional<RedisStringCommands.SetOption> getOption()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.