2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-09 23:32:35 +00:00
- Using string_view in the interface.
- Improvements in the accumulator.
- Renames class.
- Reverts unwanted changes to an example.
- One test function for each of the redis data types.
This commit is contained in:
Marcelo Zimbres
2020-12-30 13:53:56 +01:00
parent d3996a6449
commit 37359e3acc
8 changed files with 459 additions and 208 deletions

View File

@@ -16,7 +16,8 @@ int main()
{
try {
resp::pipeline p;
p.subscribe("channel");
p.set("Password", {"12345"});
p.quit();
io_context ioc {1};
tcp::resolver resv(ioc);
@@ -26,9 +27,9 @@ int main()
std::string buffer;
for (;;) {
resp::response_array<std::string> res;
resp::response_simple_string res;
resp::read(socket, buffer, res);
print(res.result);
std::cout << res.result << std::endl;
}
} catch (std::exception const& e) {
std::cerr << e.what() << std::endl;