Connecting

Make sure to call Close on the client if you want to clean it up before the
end of the program.

Cmd and Resp

The Cmd method returns a Resp, which has methods for converting to various
types. Each of these methods returns an error which can either be a
connection error (e.g. timeout), an application error (e.g. key is wrong
type), or a conversion error (e.g. cannot convert to integer). You can also
directly check the error using the Err field:

Pipelining

Pipelining is when the client sends a bunch of commands to the server at
once, and only once all the commands have been sent does it start reading the
replies off the socket. This is supported using the PipeAppend and PipeResp
methods. PipeAppend will simply append the command to a buffer without
sending it, the first time PipeResp is called it will send all the commands
in the buffer and return the Resp for the first command that was sent.
Subsequent calls to PipeResp return Resps for subsequent commands: