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 TypeMethodDescriptionbooleanifExists()Disable upsert.left()Creates a newReactiveListCommands.PushCommandfor left push (LPUSH).right()Creates a newReactiveListCommands.PushCommandfor right push (RPUSH).to(ByteBuffer key) Applies the key.value(ByteBuffer value) Applies the value.values(List<ByteBuffer> values) Applies aListof values.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
-
right
Creates a newReactiveListCommands.PushCommandfor right push (RPUSH).- Returns:
- a new
ReactiveListCommands.PushCommandfor right push (RPUSH).
-
left
Creates a newReactiveListCommands.PushCommandfor left push (LPUSH).- Returns:
- a new
ReactiveListCommands.PushCommandfor 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.PushCommandwith value applied.
-
values
Applies aListof values.- Parameters:
values- must not be null.- Returns:
- a new
ReactiveListCommands.PushCommandwith 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.PushCommandwith key applied.
-
ifExists
Disable upsert. Constructs a new command instance with all previously configured properties.- Returns:
- a new
ReactiveListCommands.PushCommandwith upsert disabled.
-
getValues
- Returns:
- never null.
-
getUpsert
public boolean getUpsert()- Returns:
-
getDirection
- Returns:
- never null.
-