| 52 | } // namespace |
| 53 | |
| 54 | void AddStreamEntriesToResponse(std::string *output, const std::vector<StreamEntry> &entries) { |
| 55 | output->append(redis::MultiLen(entries.size())); |
| 56 | for (const auto &entry : entries) { |
| 57 | output->append(redis::MultiLen(2)); |
| 58 | output->append(redis::BulkString(entry.key)); |
| 59 | output->append(redis::ArrayOfBulkStrings(entry.values)); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | class CommandXAck : public Commander { |
| 64 | public: |
no test coverage detected