2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-13 12:42:15 +00:00

Removes session from the project.

This commit is contained in:
Marcelo Zimbres
2020-11-29 09:45:54 +01:00
parent 6dc6a8f514
commit e02499d864
4 changed files with 2 additions and 365 deletions

View File

@@ -27,9 +27,6 @@ net::awaitable<void> example1()
tcp_socket socket {ex};
co_await async_connect(socket, r);
std::list<std::string> list
{"one" ,"two", "three"};
std::map<std::string, std::string> map
{ {{"Name"}, {"Marcelo"}}
, {{"Education"}, {"Physics"}}
@@ -37,15 +34,9 @@ net::awaitable<void> example1()
};
resp::pipeline p;
p.rpush("list", list);
p.lrange("list");
p.del("list");
p.hset("map", map);
p.hincrby("map", "Age", 40);
p.hmget("map", {"Name", "Education", "Job"});
p.hvals("map");
p.hlen("map");
p.hgetall("map");
p.quit();
co_await async_write(socket, buffer(p.payload));