# sewenew/redis-plus-plus

Redis client written in C++

Repository: https://github.com/sewenew/redis-plus-plus
Canonical: https://ross.abutalabs.com/products/redis-plus-plus
Language: C++
License: Apache-2.0
License Family: permissive
Topics: redis-client, redis, c-plus-plus, cpp, hiredis, redis-cluster, redis-cluster-client, redis-sentinels, connection-pool, cpp11, redlock
Last push: 2026-08-04T03:09:18+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 16, longevity 100
- inputs: {"age_days": 3182, "days_push": 29, "days_rel": 406, "gap_med": 143.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1983, forks 389 (observed 2026-08-28T04:06:01.940801+00:00)

## What it is
redis-plus-plus is a C++11 Redis client library built on hiredis, supporting most Redis commands plus Valkey, DragonflyDB, and KeyDB via RESP. It offers connection pooling, pipelines, transactions, pub/sub, Redis Cluster and Sentinel support, TLS, and sync, async, and coroutine interfaces.

## Use cases
- connect to redis from c++
- use redis cluster in a c++ application
- implement distributed locks with redlock in c++
- publish and subscribe to redis channels from c++
- pipeline redis commands for performance
- connect to redis sentinel for high availability
- use redis streams from c++
- cache data in redis from a c++ service

## When to choose
- you need a modern, thread-safe C++ Redis client with C++11 compatibility
- your app must work with Redis Cluster, Sentinel, or Redis-compatible stores like Valkey or DragonflyDB
- you need async or coroutine-based Redis access in C++
- you want TLS, pub/sub, pipelines, transactions, and Redlock in one library

## When to avoid
- you are not programming in C++ or need bindings for another language
- you need a high-level ORM-like abstraction over Redis data structures
- your project cannot depend on hiredis or manage native C++ dependencies

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, caching, serialization
- domain: databases, developer-tools, backend
- platform: cpp, cross-platform, windows
- tags: redis-client, hiredis, redis-cluster, connection-pool, redlock, pub-sub, pipeline, tls-support, coroutines, async, linux, macos

## Member repositories
- sewenew/redis-plus-plus (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.940801+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:03:31.122762+00:00, confidence not recorded.
  - readme: https://github.com/sewenew/redis-plus-plus (fetched 2026-08-28T04:06:01.940801+00:00, sha a4e30b13e321)
- Data as of 2026-08-30T08:39:29.467469+00:00.
