Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wyj999/redisclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RedisClient

A redis client library for C++ with connection pool

Build

  yum install libhiredis-dev
  git clone https://github.com/SourceInsight/RedisClient
  cd RedisClient
  ./build.sh 

Usage

  // ip, port, min conneciton, max connection, db No, pool name
  RedisClient client("127.0.0.1", 6379, 2, 10, 5, "Test");
  try
  {
    client.set("name","Michael");
    std::cout << client.get("name") << std::endl;
  }
  catch (const RedisException& ex)
  {
    std::cout << "Reason: " << ex.what() << std::endl;
  }

Todo

lots of work to do ....

About

A redis client library for C++ with connection pool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published