Class ReactiveListCommands.PushCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveListCommands.PushCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveListCommands
LPUSH
/RPUSH command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ifExists()
Disable upsert.left()
Creates a newReactiveListCommands.PushCommand
for left push (LPUSH).right()
Creates a newReactiveListCommands.PushCommand
for right push (RPUSH).to
(ByteBuffer key) Applies the key.value
(ByteBuffer value) Applies the value.values
(List<ByteBuffer> values) Applies aList
of values.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
-
right
Creates a newReactiveListCommands.PushCommand
for right push (RPUSH).- Returns:
- a new
ReactiveListCommands.PushCommand
for right push (RPUSH).
-
left
Creates a newReactiveListCommands.PushCommand
for left push (LPUSH).- Returns:
- a new
ReactiveListCommands.PushCommand
for left push (LPUSH).
-
value
Applies the value. Constructs a new command instance with all previously configured properties.- Parameters:
value
- must not be null.- Returns:
- a new
ReactiveListCommands.PushCommand
with value applied.
-
values
Applies aList
of values.- Parameters:
values
- must not be null.- Returns:
- a new
ReactiveListCommands.PushCommand
with values applied.
-
to
Applies the key. Constructs a new command instance with all previously configured properties.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveListCommands.PushCommand
with key applied.
-
ifExists
Disable upsert. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveListCommands.PushCommand
with upsert disabled.
-
getValues
- Returns:
- never null.
-
getUpsert
public boolean getUpsert()- Returns:
-
getDirection
- Returns:
- never null.
-