pub async fn smembers<K>(&mut self, key: K) -> Result<Vec<Vec<u8>>>
    where
        K: AsRef<[u8]>,
    {
        let command = Command::new("SMEMBERS").arg(&key);

        Ok(self
            .run_command(command)
            .await?
            .unwrap_array()
            .into_iter()
            .map(|s| s.unwrap_string())
            .collect())
    }
/// Return the members of a set specified by `key`.
Return the members of a set specified by `key`.
Return the members of a set specified by ` key ` .
pub async fn smembers<K>(&mut self, key: K) -> Result<Vec<Vec<u8>>>
    where
        K: AsRef<[u8]>,
    {
        let command = Command::new("SMEMBERS").arg(&key);
        Ok(self
            .run_command(command)
            .await?
            .unwrap_array()
            .into_iter()
            .map(|s| s.unwrap_string())
            .collect())
    }
pub async fn smembers < K > ( & mut self , key : K ) -> Result < Vec < Vec < u8 > > > where K : AsRef < [ u8 ] > , { let command = Command :: new ( " " ) . arg ( & key ) ; Ok ( self . run_command ( command ) . await ? . unwrap_array ( ) . into_iter ( ) . map ( | s | s . unwrap_string ( ) ) . collect ( ) ) }
Return the members of a set specified by `key`.
Return the members of a set specified by ` key ` .
&mut self
key
K
&mut self
key
K