File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ class future_client {
7171 bool
7272 is_connected () { return m_client.is_connected (); }
7373
74+ future
75+ send (const std::vector<std::string>& redis_cmd) {
76+ return exec_cmd ([=](const rcb_t & cb) -> rc& { return m_client.send (redis_cmd, cb); });
77+ }
7478
7579 future
7680 append (const std::string& key, const std::string& value) {
Original file line number Diff line number Diff line change @@ -47,11 +47,12 @@ class sync_client {
4747 disconnect () { m_client.disconnect (); }
4848 bool
4949 is_connected () { return m_client.is_connected (); }
50- #if 0
51- {
52- return m_client.().get();
50+
51+ reply
52+ send (const std::vector<std::string>& redis_cmd) {
53+ return m_client.send (redis_cmd).get ();
5354 }
54- # endif
55+
5556 reply
5657 append (const std::string& key, const std::string& value) {
5758 return m_client.append (key, value).get ();
You can’t perform that action at this time.
0 commit comments