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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user