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:
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.
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.
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.
Adds a byte array
Adds a int encoded to string
Adds a short encoded to string
Adds a byte encoded to string
Get the Command that is to be used by this request.
Adds a NULL encoded string
Generated using TypeDoc