pub async fn srandmember<S>(&mut self, set: S, count: isize) -> Result<Vec<Vec<u8>>>
    where
        S: AsRef<[u8]>,
    {
        let count = count.to_string();
        let command = Command::new("SRANDMEMBER").arg(&set).arg(&count);
        Ok(self.run_command(command).await?.unwrap_string_array())
    }
///Return a `count` random members of `set`. If `count` is negative, the same element can show up
///multiple times. See the [Redis documentation](https://redis.io/commands/srandmember) for more info.
Return a `count` random members of `set`. If `count` is negative, the same element can show up
multiple times. See the [Redis documentation] for more info.
Return a ` count ` random members of ` set ` . If ` count ` is negative the same element can show up multiple times . See the [ Redis documentation ] for more info .
pub async fn srandmember<S>(&mut self, set: S, count: isize) -> Result<Vec<Vec<u8>>>
    where
        S: AsRef<[u8]>,
    {
        let count = count.to_string();
        let command = Command::new("SRANDMEMBER").arg(&set).arg(&count);
        Ok(self.run_command(command).await?.unwrap_string_array())
    }
pub async fn srandmember < S > ( & mut self , set : S , count : isize ) -> Result < Vec < Vec < u8 > > > where S : AsRef < [ u8 ] > , { let count = count . to_string ( ) ; let command = Command :: new ( " " ) . arg ( & set ) . arg ( & count ) ; Ok ( self . run_command ( command ) . await ? . unwrap_string_array ( ) ) }
Return a `count` random members of `set`.
Return a ` count ` random members of ` set ` .
&mut self
set
S
count
isize
&mut self
set
S
count
isize