Skip to content

lordoffox/aredis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

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

About

a clean redis C++ client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages