If you only want to build one of them, you can disable the other with -DREDIS_PLUS_PLUS_BUILD_STATIC=OFF or -DREDIS_PLUS_PLUS_BUILD_SHARED=OFF.
īy default, redis-plus-plus builds both a static library and a shared library.
Note again: DO NOT INSTALL MULTIPLE VERSIONS OF HIREDIS.Ĭmake -DCMAKE_PREFIX_PATH=/path/to/hiredis -DCMAKE_INSTALL_PREFIX=/path/to/install/redis-plus-plus -DREDIS_PLUS_PLUS_BUILD_TEST=OFF. async support needs hiredis v1.0.0 or later), you can install it from source. However, if you want to install the latest code of hiredis, or a specified version (e.g. Normally, you can install hiredis with a C++ package manager, and that's the easiest way to do it, e.g. Check the following issues for example: issue 135, issue 140 and issue 158. Otherwise, you might get some wired problems. NOTE: You must ensure that there's only 1 version of hiredis is installed. However, the latest stable release of hiredis is always recommended. The minimum version requirement for hiredis is v0.12.1. Since redis-plus-plus is based on hiredis, you should install hiredis first. If you want to contribute, please create pull request on dev branch. The master branch is the stable branch, which passes all tests. So if the documentation is unclear, please feel free to open an issue or pull request.
It's based on hiredis, and is compatible with C++ 17, C++ 14, and C++ 11.