2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-02 21:12:16 +00:00
2021-10-17 12:25:00 +02:00
2021-08-07 13:46:54 +02:00
2021-06-19 18:37:22 +02:00
2021-10-17 12:25:00 +02:00
2021-06-19 18:37:22 +02:00
2021-08-21 22:38:27 +02:00
2019-11-19 22:19:03 +01:00
2021-10-16 19:05:48 +02:00
2021-10-16 10:40:10 +02:00

Aedis

Aedis is a redis client designed for scalability and performance while providing an easy and intuitive interface.

Example

Lets us see some examples with increasing order of complexity.

net::awaitable<void> ping()
{
   auto socket = co_await make_connection();

   std::queue<resp3::request> requests;
   requests.push({});
   requests.back().hello();
   requests.back().ping();
   requests.back().quit();

   resp3::consumer cs;
   for (;;) {
      resp3::response resp;
      co_await cs.async_consume(socket, requests, resp);
      std::cout << requests.front().elements.front() << "\n" << resp << std::endl;
   }
}

The example above will start writing the hello command and proceed reading its response. After that users can add further commands to the queue. See the example directory for a complete example.

See the examples directory for more examples.

Installation

This library is header only. To install it run

$ sudo make install

or copy the include folder to where you want. You will also need to include the following header in one of your source files e.g. aedis.cpp

#include <aedis/impl/src.hpp>
Description
Mirrored via gitea-mirror
Readme 6.7 MiB
Languages
C++ 96%
Python 1.4%
CMake 1.2%
Java 0.3%
Rust 0.3%
Other 0.7%