Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform

License

NotificationsYou must be signed in to change notification settings

cpp-redis/cpp_redis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp_redisBuild StatusBuild status

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 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)

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::clientfull documentation anddetailed example.More aboutcpp_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::subscriberfull documentation anddetailed example.

Wiki

AWiki is available and provides full documentation for the library as well asinstallation explanations.

Doxygen

ADoxygen documentation is available and provides full API documentation for the library.

License

cpp_redis is underMIT License.

Contributing

Please refer toCONTRIBUTING.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

Simon Ninon

About

C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++76.1%
  • HTML6.2%
  • TeX5.5%
  • CSS4.9%
  • JavaScript4.8%
  • CMake1.3%
  • Other1.2%

[8]ページ先頭

©2009-2025 Movatter.jp