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 |
---|---|
default 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
|
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)
default Request arg(boolean arg)
Request nullArg()
Command command()
Copyright © 2023 Eclipse. All rights reserved.