(cmd: &RespCommand)
| 70 | // --------------------------------------------------------------------------- |
| 71 | |
| 72 | fn handle_ping(cmd: &RespCommand) -> RespValue { |
| 73 | match cmd.arg(0) { |
| 74 | Some(msg) => RespValue::bulk(msg.to_vec()), |
| 75 | None => RespValue::SimpleString("PONG".into()), |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | fn handle_echo(cmd: &RespCommand) -> RespValue { |
| 80 | match cmd.arg(0) { |