Description
A Wiki is available and provides full documentation for the library as well as installation explanations.
cpp_redis alternatives and similar libraries
Based on the "Database" category.
Alternatively, view cpp_redis alternatives based on common mentions on social networks and blogs.
-
LevelDB
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values. -
LMDB
Read-only mirror of official repo on openldap.org. Issues and pull requests here are ignored. Use OpenLDAP ITS for issues. -
libmdbx
DISCONTINUED. One of the fastest embeddable key-value ACID database without WAL. libmdbx surpasses the legendary LMDB in terms of reliability, features and performance. -
Bedrock
Rock solid distributed database specializing in active/active automatic failover and WAN replication -
SimDB
A high performance, shared memory, lock free, cross platform, single file, no dependencies, C++11 key-value store -
BerylDB
DISCONTINUED. BerylDB is a fully modular data structure data manager that can be used to store data as key-value entries. The server allows channel subscription and is optimized to be used as a cache repository. Supported structures include lists, sets, multimaps, and keys.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of cpp_redis or a related project?
README
Important
Please be advised that this library is no longer maintained.
For new updates, please refer to the following fork https://github.com/cpp-redis/cpp_redis
I have maintained this library for over 3 years, but I do not have enough time to provide a reliable support and continuous development for any longer.
Any existing or new issues will not be treated and I do not guarantee to merge any new pull request.
If anyone is willing to take over this project, feel free to fork this project and message me to add a link to your fork in this README.
cpp_redis

cpp_redis
is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations, pipelining, sentinels and high availability.
Requirement
cpp_redis
has no dependency. Its only requirement is C++11
.
It comes with no network module, so you are free to configure your own, or to use the default one (tacopie)
Example
cpp_redis::client
cpp_redis::client client;
client.connect();
client.set("hello", "42");
client.get("hello", [](cpp_redis::reply& reply) {
std::cout << reply << std::endl;
});
//! also support std::future
//! std::future<cpp_redis::reply> get_reply = client.get("hello");
client.sync_commit();
//! or client.commit(); for asynchronous call
cpp_redis::client
full documentation and detailed example.
More about cpp_redis::reply.
cpp_redis::subscriber
cpp_redis::subscriber sub;
sub.connect();
sub.subscribe("some_chan", [](const std::string& chan, const std::string& msg) {
std::cout << "MESSAGE " << chan << ": " << msg << std::endl;
});
sub.psubscribe("*", [](const std::string& chan, const std::string& msg) {
std::cout << "PMESSAGE " << chan << ": " << msg << std::endl;
});
sub.commit();
cpp_redis::subscriber
full documentation and detailed example.
Wiki
A Wiki is available and provides full documentation for the library as well as installation explanations.
Doxygen
A Doxygen documentation is available and provides full API documentation for the library.
License
cpp_redis
is under [MIT License](LICENSE).
Contributing
Please refer to [CONTRIBUTING.md](CONTRIBUTING.md).
Special Thanks
Mike Moening for his unexpected and incredible great work aiming to port cpp_redis on Windows, provides sentinel support and high availability support!
Author
*Note that all licence references and agreements mentioned in the cpp_redis README section above
are relevant to that project's source code only.