Module redis_async::client
[−]
[src]
The client API itself.
This contains three main functions that return three specific types of client:
connectreturns a pair ofStreamandSink, clients can write RESP messages to theSinkand 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_connectis used for most of the standard Redis commands, where one request results in one response.pubsub_connectis used for Redis's PUBSUB functionality.
Structs
| ClientConnection |
A low-level client connection representing a sender and a receiver. |
| ClientSink | |
| ClientStream | |
| 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. |