- if let Some(value) = db.get(cmd.key()) {
- // `Frame::Bulk` expects data to be of type `Bytes`. This
- // type will be covered later in the tutorial. For now,
- // `&Vec<u8>` is converted to `Bytes` using `into()`.
- Frame::Bulk(value.clone().into())