Skip to content

dikoufu/hiredis-happ

 
 

Repository files navigation

hiredis-happ

Redis HA connector

Function

  1. auto reconnect
  2. support redis cluster
  3. [TODO] support redis sential
  4. [TODO] support raw redis connection

Usage

Linux & Cygwin(hiredis not available in cygwin now)

git clone https://github.com/owt5008137/hiredis-happ.git;
mkdir -p hiredis-happ/build && cd hiredis-happ/build;
cmake ..; # cmake .. -DCMAKE_INSTALL_PREFIX=/usr;
make;

# for install only
make install

Windows(hiredis do not support MS VC now)

git clone https://github.com/owt5008137/hiredis-happ.git
mkdir hiredis-happ/build
cd hiredis-happ/build

cmake .. -G "Visual Studio 14 2015 Win64"; # cmake .. -DCMAKE_INSTALL_PREFIX="%ProgramFiles%" -G "Visual Studio 14 2015 Win64"

: using visual studio to build

: or using msbuild when it's in PATH
msbuild hiredis-happ.sln /p:Configuration=Release

Document

See doc

Environment Linux (GCC) Windows
Build Status Build Status Build status

Directory list

3rd_party -- script for 3rd party libraries

doc -- document

include -- include files

project -- project configure

src -- source

sample -- samples

test -- unit test

tools -- misc tools

About

Redis高可用Driver方案实现

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 72.2%
  • CMake 27.5%
  • C 0.3%