pub async fn paired_connect(
    host: impl Into<String>,
    port: u16
) -> Result<PairedConnection, Error>
Expand description

The default starting point to use most default Redis functionality.

Returns a future that resolves to a PairedConnection. The future will complete when the initial connection is established.

Once the initial connection is established, the connection will attempt to reconnect should the connection be broken (e.g. the Redis server being restarted), but reconnections occur asynchronously, so all commands issued while the connection is unavailable will error, it is the client’s responsibility to retry commands as applicable. Also, at least one command needs to be tried against the connection to trigger the re-connection attempt; this means at least one command will definitely fail in a disconnect/reconnect scenario.