pub async fn exists<K>(&mut self, key: K) -> Result<bool>
    where
        K: AsRef<[u8]>,
    {
        let command = Command::new("EXISTS").arg(&key);
        Ok(self.run_command(command).await? == Value::Integer(1))
    }
///Returns true if a key has been previously set.
Returns true if a key has been previously set.
Returns true if a key has been previously set .
pub async fn exists<K>(&mut self, key: K) -> Result<bool>
    where
        K: AsRef<[u8]>,
    {
        let command = Command::new("EXISTS").arg(&key);
        Ok(self.run_command(command).await? == Value::Integer(1))
    }
pub async fn exists < K > ( & mut self , key : K ) -> Result < bool > where K : AsRef < [ u8 ] > , { let command = Command :: new ( " " ) . arg ( & key ) ; Ok ( self . run_command ( command ) . await ? == Value :: Integer ( 1 ) ) }
Returns true if a key has been previously set.
Returns true if a key has been previously set .
&mut self
key
K
&mut self
key
K