Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

Redis-Internals

> 数据库
Open source

Analyze redis 5.0 source code through diagrams

360 stars0 likes0 views
WebsiteGitHub

About

Analyze redis 5.0 source code through diagrams

Redis Internals

  • 简体中文
  • Watch this repo if you need to be notified when there's update

This repository is my notes for redis source code

# based on version 5.0.5
cd redis
git fetch origin 5.0:5.0
git reset --hard 388efbf8b661ce2e5db447e994bf3c3caf6403c6

Table of Contents

  • Objects
  • Server
  • Why this repo
  • Learning material
  • Contribution
  • License

Objects

  • string(sds)
  • hash(ziplist/ht)
  • list(quicklist)
  • set(intset/ht)
  • zset(ziplist/skiplist/ht)
  • hyperloglog
  • streams
    • rax
    • listpack
  • geohash

Server

  • persistence
  • pubsub
  • cluster
    • reshard
    • gossip
    • failover
  • replica
  • redlock
  • protocol
  • transaction

Why this repo

  • learning purpose
  • there are very good chinese learning material, but no english version
  • the book in learning material is based on redis 3.0, the implenentation detail may changed a lot from 3.0 to the current version

Learning material

  • Redis 设计与实现
  • Redis Documentation
  • Redis 5.0 RELEASENOTES

Contribution

All kinds of contributions are welcome

  • submit a pull request
    • if you want to share any knowledge you know
    • post a new article
    • correct any technical mistakes
    • correct english grammar
    • translation
    • anything else
  • open an issue
    • any suggestions
    • any questions
    • correct mistakes
    • anything else

License

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Cclearning-materialredisredis-internals

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库