a clean redis C++ client
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
aredis.hpp

README.md

aredis

a clean redis C++ client

redis_conn rc;
if (rc.connect("127.0.0.1"/*host*/, 6379/*port*/, nullptr/*password*/, 1/*db*/))
{
  redis_command cmd;
  cmd.cmd("set", "test", 123);
  rc.command(cmd);
  resp_result res;
  if (rc.reply(res))
  {
    std::cout << res.dump();
  }
  cmd.cmd("get", "test");
  rc.command(cmd);
  if (rc.reply(res))
  {
    std::cout << res.dump();
  }
}