Adds a String argument using UTF8 character encoding
Adds a String using a specific character encoding argument
Adds a String key argument
Adds a long encoded to string
Adds a boolean encoded to string
Adds a JsonObject argument, the encoding will serialize the json as key0, value0, key1, value1, ... keyN, valueN. This is a non-optimized serialization and will just use the string encoding of the values for non buffers.
All null
values will follow the encoding rules of {@link Request#nullArg}.
Adds a JsonArray argument, the encoding will serialize the json as value0, value1, ... valueN. This is a non-optimized serialization and will just use the string encoding of the values for non buffers.
All null
values will follow the encoding rules of {@link Request#nullArg}.
Adds a byte array
Adds a int encoded to string
Adds a short encoded to string
Adds a byte encoded to string
Adds a float encoded to string
Adds a double encoded to string
Get the Command that is to be used by this request.
Creates a new request command. Requests can be reused to avoid GC.
Creates a new request command only with simple types: Number, Boolean, String,
byte[]
or . This factory reduces the GC as it allocates the arguments array with
the right size.
Generated using TypeDoc
Builder for REDIS requests that will be encoded according to the RESP protocol was introduced in Redis 1.2. Which became the standard way for talking with the Redis server in Redis 2.0.
Redis protocol documentation states:
So all non String/Bulk types will be encoded to Bulk for convenience.