public static class ReactiveListCommands.PushCommand extends ReactiveRedisConnection.KeyCommand
LPUSH/RPUSH command parameters.| Modifier and Type | Method and Description |
|---|---|
ReactiveListCommands.Direction |
getDirection() |
boolean |
getUpsert() |
List<ByteBuffer> |
getValues() |
ReactiveListCommands.PushCommand |
ifExists()
Disable upsert.
|
static ReactiveListCommands.PushCommand |
left()
Creates a new
ReactiveListCommands.PushCommand for left push (LPUSH). |
static ReactiveListCommands.PushCommand |
right()
Creates a new
ReactiveListCommands.PushCommand for right push (RPUSH). |
ReactiveListCommands.PushCommand |
to(ByteBuffer key)
Applies the key.
|
ReactiveListCommands.PushCommand |
value(ByteBuffer value)
Applies the value.
|
ReactiveListCommands.PushCommand |
values(List<ByteBuffer> values)
Applies a
List of values. |
getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic static ReactiveListCommands.PushCommand right()
ReactiveListCommands.PushCommand for right push (RPUSH).ReactiveListCommands.PushCommand for right push (RPUSH).public static ReactiveListCommands.PushCommand left()
ReactiveListCommands.PushCommand for left push (LPUSH).ReactiveListCommands.PushCommand for left push (LPUSH).public ReactiveListCommands.PushCommand value(ByteBuffer value)
value - must not be null.ReactiveListCommands.PushCommand with value applied.public ReactiveListCommands.PushCommand values(List<ByteBuffer> values)
List of values.values - must not be null.ReactiveListCommands.PushCommand with values applied.public ReactiveListCommands.PushCommand to(ByteBuffer key)
key - must not be null.ReactiveListCommands.PushCommand with key applied.public ReactiveListCommands.PushCommand ifExists()
ReactiveListCommands.PushCommand with upsert disabled.public List<ByteBuffer> getValues()
public boolean getUpsert()
public ReactiveListCommands.Direction getDirection()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.