- Notifications
You must be signed in to change notification settings - Fork209
C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
License
cpp-redis/cpp_redis
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
cpp_redis
is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations, pipelining, sentinels and high availability.
cpp_redis
hasno dependency. Its only requirement isC++11
.
It comes with no network module, so you are free to configure your own, or to use the default one (tacopie)
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 anddetailed example.More aboutcpp_redis::reply.
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 anddetailed example.
AWiki is available and provides full documentation for the library as well asinstallation explanations.
ADoxygen documentation is available and provides full API documentation for the library.
cpp_redis
is underMIT License.
Please refer toCONTRIBUTING.md.
Mike Moening for his unexpected and incredible great work aiming to port cpp_redis on Windows, provides sentinel support and high availability support!
About
C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Languages
- C++76.1%
- HTML6.2%
- TeX5.5%
- CSS4.9%
- JavaScript4.8%
- CMake1.3%
- Other1.2%