{"id":61627,"library":"cpp-redis","title":"cpp-redis","description":"cpp-redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.","status":"active","version":"4.3.1","language":"cpp","source_language":null,"source_url":null,"tags":["redis","client","async","cpp11"],"install":[{"cmd":"vcpkg install cpp-redis","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(cpp_redis CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE cpp_redis::cpp_redis)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"cpp_redis/core/client.hpp","correct":"#include <cpp_redis/core/client.hpp>"}],"quickstart":{"code":"#include <cpp_redis/core/client.hpp>\n\nint main() {\n    cpp_redis::client client;\n    client.connect(\"127.0.0.1\", 6379);\n    client.set(\"hello\", \"world\");\n    client.sync_commit();\n    return 0;\n}","lang":"cpp","description":"Connect to Redis and set a key-value pair synchronously"},"warnings":[{"fix":"Start a Redis server and ensure the event loop is running for async usage","message":"Requires a running Redis server; async operations need an event loop (e.g., with cpp_redis::network::set_default_io_service)","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'+11':10 'async':27 'asynchron':11 'c':9 'client':17,26 'cpp':2,5 'cpp-redi':1,4 'cpp11':28 'lightweight':15 'multi':13 'multi-platform':12 'oper':22 'pipelin':24 'platform':14 'redi':3,6,16,25 'support':19 'synchron':21","created_at":"2026-06-17T04:58:51.314385+00:00","updated_at":"2026-06-17T04:58:51.314385+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}