/** * Basic use of Redox to set and get a Redis key. */ #include #include "../src/redox.hpp" using namespace std; int main(int argc, char* argv[]) { redox::Redox 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(); }