• Stars
    star
    27
  • Rank 875,054 (Top 18 %)
  • Language
    C++
  • License
    Boost Software Li...
  • Created almost 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

a clean redis C++ client

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();
  }
}