///Connect to a Redis instance running at `address`, and authenticate using `password`.
Connect to a Redis instance running at `address`, and authenticate using `password`.
Connect to a Redis instance running at ` address ` and authenticate using ` password ` .
pub async fn connect_and_auth<A, P>(address: A, password: P) -> Result<Self>
    where
        A: ToSocketAddrs,
        P: AsRef<[u8]>,
    {
        let mut out = Self::connect(address).await?;
        out.run_command(Command::new("AUTH").arg(&password)).await?;
        Ok(out)
    }
pub async fn connect_and_auth < A , P > ( address : A , password : P ) -> Result < Self > where A : ToSocketAddrs , P : AsRef < [ u8 ] > , { let mut out = Self :: connect ( address ) . await ? ; out . run_command ( Command :: new ( " " ) . arg ( & password ) ) . await ? ; Ok ( out ) }
Connect to a Redis instance running at `address`, and authenticate using `password`.
Connect to a Redis instance running at ` address ` and authenticate using ` password ` .
address
A
password
P