Documentation
¶
Overview ¶
Package respclient is a minimal blocking RESP client for talking to a running aki or Redis instance over the wire. MIGRATE uses it on the server side to push keys to a target, and the CLI uses it for networked dump and import. It writes requests as RESP arrays and parses replies with the shared decoder, holding one read buffer across calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is one connection to a remote instance. It is not safe for concurrent use: each call writes a command and reads its reply before returning.
func Dial ¶
Dial connects to addr. A non-zero timeout arms a single deadline that bounds the whole conversation on the connection, which is how MIGRATE enforces its timeout. A zero timeout means no deadline.
func (*Client) Call ¶
Call writes one command as a RESP array of bulk strings and reads a single reply. Byte-slice arguments keep binary payloads such as a DUMP blob intact.