Redis C++ client, support the data slice storage, support the connection pool
C++ C Makefile
Latest commit c20a07b Dec 5, 2016 @0xsky committed on GitHub GetReply bug fix
GetReply 方法内 reply 没有释放
Failed to load latest commit information.
examples bug fix Oct 14, 2016
src GetReply bug fix Dec 6, 2016
test 添加type命令实现 Aug 23, 2016
.gitignore Initial commit Jul 7, 2014
LICENSE Initial commit Jul 7, 2014 Update May 8, 2016 Update Sep 14, 2016
makefile 添加 pub/sub 相关命令实现 Aug 5, 2016


C++ Redis client, support the data slice storage, connection pool, read/write separation.


  • data slice storage
  • support Redis master slave connection, Support read/write separation
  • connection pool
  • simultaneously connected multiple data slice groups
  • most Redis commands have been implemented
  • multi thread safety
  • suport linux and windows



xredis requires hiredis only


First step install libhiredis, on a Debian system you can use:

sudo apt-get install libhiredis-dev

on centos/redhat/fedora system you can use:

sudo yum install hiredis-devel

Then checkout the code and compile it

git clone
cd xredis
sudo make install



xRedis API Site

See examples directory for some examples

blog: xSky's Blog

xRedis QQ Group: 190107312