Redis C++ client, support the data slice storage, support redis cluster, thread-safe,multi-platform,connection pool, read/write separation.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples update Jul 9, 2018
src 重构 Sep 9, 2018
test 重构 Sep 9, 2018
.gitignore Initial commit Jul 7, 2014
.travis.yml Merge branch 'devel' Jan 5, 2018
LICENSE Initial commit Jul 7, 2014 Update Jan 8, 2018 Update Dec 29, 2017
donate.jpg add Dec 29, 2017
makefile Update makefile Dec 15, 2017

Build Status License GitHub version

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


  • data slice storage
  • support Redis master slave connection, Support read/write separation
  • suppert redis cluster
  • 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  


![](./donate.jpg =100x100)