{"id":15047444,"url":"https://github.com/cpp-redis/cpp_redis","last_synced_at":"2025-10-04T07:30:32.347Z","repository":{"id":34509654,"uuid":"158901124","full_name":"cpp-redis/cpp_redis","owner":"cpp-redis","description":"C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform","archived":false,"fork":true,"pushed_at":"2023-03-01T16:59:53.000Z","size":2778,"stargazers_count":712,"open_issues_count":43,"forks_count":198,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-09-29T23:41:22.712Z","etag":null,"topics":["cpp","cpp-library","cpp11","cpp17","redis","redis-client","unix","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Cylix/cpp_redis","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cpp-redis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-24T04:05:01.000Z","updated_at":"2024-09-29T17:33:46.000Z","dependencies_parsed_at":"2023-02-17T07:45:48.612Z","dependency_job_id":null,"html_url":"https://github.com/cpp-redis/cpp_redis","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-redis%2Fcpp_redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-redis%2Fcpp_redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-redis%2Fcpp_redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-redis%2Fcpp_redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpp-redis","download_url":"https://codeload.github.com/cpp-redis/cpp_redis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235227462,"owners_count":18956137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp-library","cpp11","cpp17","redis","redis-client","unix","windows"],"created_at":"2024-09-24T20:58:26.211Z","updated_at":"2025-10-04T07:30:26.783Z","avatar_url":"https://github.com/cpp-redis.png","language":"C++","readme":"\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://github.com/cpp-redis/cpp_redis/blob/master/assets/images/cpp_redis_logo.png\"/\u003e\n\u003c/p\u003e\n\n# cpp_redis [![Build Status](https://travis-ci.org/Cylix/cpp_redis.svg?branch=master)](https://travis-ci.org/Cylix/cpp_redis) [![Build status](https://ci.appveyor.com/api/projects/status/d45yqju539t97s4m?svg=true)](https://ci.appveyor.com/project/Cylix/cpp-redis)\n\n`cpp_redis` is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations, pipelining, sentinels and high availability.\n\n## Requirement\n\n`cpp_redis` has **no dependency**. Its only requirement is `C++11`.\n\nIt comes with no network module, so you are free to configure your own, or to use the default one ([tacopie](https://github.com/cylix/tacopie))\n\n## Example\n\n### cpp_redis::client\n\n```cpp\ncpp_redis::client client;\n\nclient.connect();\n\nclient.set(\"hello\", \"42\");\nclient.get(\"hello\", [](cpp_redis::reply\u0026 reply) {\n  std::cout \u003c\u003c reply \u003c\u003c std::endl;\n});\n//! also support std::future\n//! std::future\u003ccpp_redis::reply\u003e get_reply = client.get(\"hello\");\n\nclient.sync_commit();\n//! or client.commit(); for asynchronous call\n```\n\n`cpp_redis::client` [full documentation](https://github.com/cpp-redis/cpp_redis/wiki/Redis-Client) and [detailed example](https://github.com/cpp-redis/cpp_redis/wiki/Examples#redis-client).\nMore about [cpp_redis::reply](https://github.com/cpp-redis/cpp_redis/wiki/Replies).\n\n### cpp_redis::subscriber\n\n```cpp\ncpp_redis::subscriber sub;\n\nsub.connect();\n\nsub.subscribe(\"some_chan\", [](const std::string\u0026 chan, const std::string\u0026 msg) {\n  std::cout \u003c\u003c \"MESSAGE \" \u003c\u003c chan \u003c\u003c \": \" \u003c\u003c msg \u003c\u003c std::endl;\n});\nsub.psubscribe(\"*\", [](const std::string\u0026 chan, const std::string\u0026 msg) {\n  std::cout \u003c\u003c \"PMESSAGE \" \u003c\u003c chan \u003c\u003c \": \" \u003c\u003c msg \u003c\u003c std::endl;\n});\n\nsub.commit();\n\n```\n\n`cpp_redis::subscriber` [full documentation](https://github.com/cpp-redis/cpp_redis/wiki/Redis-Subscriber) and [detailed example](https://github.com/cpp-redis/cpp_redis/wiki/Examples#redis-subscriber).\n\n## Wiki\n\nA [Wiki](https://github.com/cpp-redis/cpp_redis/wiki) is available and provides full documentation for the library as well as [installation explanations](https://github.com/cpp-redis/cpp_redis/wiki/Installation).\n\n# Doxygen\n\nA [Doxygen documentation](https://cylix.github.io/cpp_redis/html/) is available and provides full API documentation for the library.\n\n## License\n\n`cpp_redis` is under [MIT License](LICENSE).\n\n## Contributing\n\nPlease refer to [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Special Thanks\n\n[Mike Moening](https://github.com/MikesAracade) for his unexpected and incredible great work aiming to port cpp_redis on Windows, provides sentinel support and high availability support!\n\n## Author\n\n[Simon Ninon](http://simon-ninon.fr)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpp-redis%2Fcpp_redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpp-redis%2Fcpp_redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpp-redis%2Fcpp_redis/lists"}