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

Refactoring:

- Progresses with caching.
- Renaming and simplifications.
- Renames enum commands to command.
- Renames enum types to type.
This commit is contained in:
Marcelo Zimbres
2021-08-15 09:07:39 +02:00
parent f7d9a30a64
commit 6e79ecc9f4
21 changed files with 340 additions and 341 deletions

View File

@@ -10,13 +10,6 @@
using namespace aedis;
void f(request& req)
{
req.ping();
req.psubscribe({"aaa*"});
req.quit();
}
class myreceiver : public receiver_base {
private:
std::shared_ptr<connection> conn_;
@@ -25,7 +18,11 @@ public:
myreceiver(std::shared_ptr<connection> conn) : conn_{conn} { }
void on_hello(array_type& v) noexcept override
{ conn_->send(f); }
{
conn_->ping();
conn_->psubscribe({"aaa*"});
conn_->quit();
}
void on_ping(simple_string_type& s) noexcept override
{ std::cout << "PING: " << s << std::endl; }