pub trait Command {
    type Output;
    // Required methods
    fn command_name(&self) -> &str;
    fn args(&self) -> Vec<RespValue>;
    fn parse_response(&self, response: RespValue) -> RedisResult<Self::Output>;
    fn keys(&self) -> Vec<&[u8]>;
}Expand description
Trait for commands that can be executed
Required Associated Types§
Required Methods§
Sourcefn command_name(&self) -> &str
 
fn command_name(&self) -> &str
Get the command name
Sourcefn parse_response(&self, response: RespValue) -> RedisResult<Self::Output>
 
fn parse_response(&self, response: RespValue) -> RedisResult<Self::Output>
Parse the response into the output type