public interface Request
Clients send commands to a Redis server as a RESP Array of Bulk Strings.So all non String/Bulk types will be encoded to Bulk for convenience.
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
|
default Request |
arg(byte arg)
Adds a byte encoded to string
|
Request |
arg(byte[] arg)
Adds a byte array
|
default Request |
arg(int arg)
Adds a int encoded to string
|
default Request |
arg(JsonArray arg)
Adds a JsonArray argument, the encoding will serialize the json as value0, value1, ...
|
default Request |
arg(JsonObject arg)
Adds a JsonObject argument, the encoding will serialize the json as key0, value0, key1, value1, ...
|
Request |
arg(long arg)
Adds a long encoded to string
|
default Request |
arg(short arg)
Adds a short encoded to string
|
default Request |
arg(String arg)
Adds a String argument using UTF8 character encoding
|
default Request |
arg(String arg,
String enc)
Adds a String using a specific character encoding argument
|
static Request |
cmd(Command command) |
Command |
command()
Get the Command that is to be used by this request.
|
Request |
nullArg()
Adds a NULL encoded string
|
Request arg(byte[] arg)
default Request arg(String arg)
default Request arg(String arg, String enc)
Request arg(long arg)
default Request arg(int arg)
default Request arg(short arg)
default Request arg(byte arg)
Request arg(boolean arg)
default Request arg(JsonObject arg)
IllegalArgumentException
- when values are of type JsonArray or JsonObjectdefault Request arg(JsonArray arg)
IllegalArgumentException
- when values are of type JsonArray or JsonObjectRequest nullArg()
Command command()
Copyright © 2020 Eclipse. All rights reserved.