Module redis_async::client
[−]
[src]
The client API itself.
This contains three main functions that return three specific types of client:
connect
returns a pair ofStream
andSink
, clients can write RESP messages to theSink
and read RESP messages from theStream
. Pairing requests to responses is up to the client. This is intended to be a low-level interface from which more user-friendly interfaces can be built.paired_connect
is used for most of the standard Redis commands, where one request results in one response.pubsub_connect
is used for Redis's PUBSUB functionality.
Structs
ClientConnection |
A low-level client connection representing a sender and a receiver. |
PairedConnection | |
PubsubConnection |
Functions
connect |
Connect to a Redis server and return paired Sink and Stream for reading and writing asynchronously. |
paired_connect |
The default starting point to use most default Redis functionality. |
pubsub_connect |
Used for Redis's PUBSUB functionality. |