2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-21 15:22:14 +00:00

Improvements in the examples.

This commit is contained in:
Marcelo Zimbres
2021-11-13 12:48:18 +01:00
parent 3b221c4935
commit 381cc0b4f3
17 changed files with 224 additions and 299 deletions

View File

@@ -21,12 +21,12 @@ using namespace aedis;
*/
net::awaitable<void> ping()
{
auto socket = co_await make_connection();
resp3::request req;
req.push(command::hello, 3);
req.push(command::ping);
req.push(command::quit);
auto socket = co_await make_connection();
co_await async_write(socket, req);
std::string buffer;