# huangzworks/redis-3.0-annotated

带有详细注释的 Redis 3.0 代码（annotated Redis 3.0 source code）。

Repository: https://github.com/huangzworks/redis-3.0-annotated
Canonical: https://ross.abutalabs.com/products/redis-30-annotated
Language: C
License: BSD-3-Clause
License Family: permissive
Last push: 2023-08-26T12:09:20+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4449, "days_push": 1103, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10154, forks 4177 (observed 2026-08-28T04:10:39.699911+00:00)

## What it is
A fully annotated copy of the Redis 3.0 source code in C, with detailed Chinese comments explaining the internal implementation of every major component. It was created as a study companion to the book 'Redis Design and Implementation' and leaves the original code otherwise untouched.

## Use cases
- learn how Redis works internally by reading annotated source
- understand Redis data structures like adlist, ziplist, and dict
- study the Redis event loop and networking implementation
- prepare for Redis interviews by reading source code
- follow along with the Redis Design and Implementation book
- explore how AOF persistence is implemented

## When to choose
- you want to deeply understand Redis 3.0 internals from the source
- you prefer reading code with explanatory comments in Chinese
- you are studying alongside the Redis Design and Implementation book

## When to avoid
- you need a production Redis server - use the official redis/redis repo
- you need annotations for a recent Redis version - this covers only 3.0
- you cannot read Chinese, since the comments are in Chinese

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: database, developer-tools, documentation
- domain: databases, developer-tools, tutorials
- platform: c, cross-platform
- tags: redis, annotated-source-code, source-code-reading, in-memory-database, educational, linux, macos

## Member repositories
- huangzworks/redis-3.0-annotated (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.699911+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-29T17:19:40.732324+00:00, confidence not recorded.
  - readme: https://github.com/huangzworks/redis-3.0-annotated (fetched 2026-08-28T04:10:39.699911+00:00, sha 5761f5d0e729)
- Data as of 2026-08-30T08:39:29.467469+00:00.
