| Constructor and Description |
|---|
RequestImpl(Command cmd) |
| Modifier and Type | Method and Description |
|---|---|
Request |
arg(boolean arg)
Adds a boolean encoded to string
|
Request |
arg(Buffer arg)
Adds a String key argument
|
Request |
arg(byte[] arg)
Adds a byte array
|
Request |
arg(long arg)
Adds a long encoded to string
|
Command |
command()
Get the Command that is to be used by this request.
|
Request |
nullArg()
Adds a
null encoded string. |
String |
toString() |
public RequestImpl(Command cmd)
public Command command()
Requestpublic Request arg(long arg)
Requestpublic Request arg(boolean arg)
Requestpublic Request nullArg()
Requestnull encoded string. Redis does not allow storing the null value by itself. This method
will encode any null value as the four character long string "null".
As a recommendation, this method should not be used directly unless this is the intented behavior. It is present
to handle special cases such as encoding of JsonObject and JsonArray which may contain null values.public Request arg(Buffer arg)
RequestCopyright © 2021. All rights reserved.