2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-09 23:32:35 +00:00

Adds install target to the Makefile.

This commit is contained in:
Marcelo Zimbres
2020-12-28 14:58:39 +01:00
parent 16454f7a25
commit f1829f92bc
3 changed files with 27 additions and 7 deletions

View File

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