mirror of
https://github.com/boostorg/redis.git
synced 2026-02-17 14:02:13 +00:00
30 lines
622 B
C++
30 lines
622 B
C++
/* Copyright (c) 2019 - 2021 Marcelo Zimbres Silva (mzimbres at gmail dot com)
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include <aedis/resp3/response.hpp>
|
|
#include <aedis/command.hpp>
|
|
|
|
namespace aedis {
|
|
namespace resp3 {
|
|
|
|
void response::clear()
|
|
{
|
|
data_.resize(0);
|
|
adapter_.clear();
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& os, response const& r)
|
|
{
|
|
for (auto const& n : r.data_)
|
|
os << n << "\n";
|
|
|
|
return os;
|
|
}
|
|
|
|
} // resp3
|
|
} // aedis
|