/** * Basic asynchronous calls using redisx. */ #include #include "../src/redisx.hpp" using namespace std; int main(int argc, char* argv[]) { redisx::Redis rdx = {"localhost", 6379}; rdx.command("SET alaska rules!", [](const string &cmd, const string &value) { cout << cmd << ": " << value << endl; }); rdx.command("GET alaska", [](const string &cmd, const string &value) { cout << cmd << ": " << value << endl; }); rdx.run_blocking(); }