2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-10 11:42:28 +00:00

Improvements in example and error handling.

This commit is contained in:
Marcelo Zimbres
2021-02-07 09:52:03 +01:00
parent 63712da04a
commit 7cffa9a072
17 changed files with 207 additions and 100 deletions

View File

@@ -10,10 +10,12 @@
using namespace aedis;
enum class events {ignore};
int main()
{
try {
resp::request req;
resp::request<events> req;
req.hello();
req.set("Password", {"12345"});
req.get("Password");
@@ -28,7 +30,7 @@ int main()
std::string buffer;
resp::response_flat_map<std::string> hello;
resp::read(socket, buffer, hello);
resp::print(hello.result);
print(hello.result);
resp::response_simple_string set;
resp::read(socket, buffer, set);