GithubHelp home page GithubHelp logo

chenjinghui0901 / redis-6.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinhehc/redis-6.0

0.0 0.0 0.0 4.51 MB

License: BSD 3-Clause "New" or "Revised" License

Shell 0.33% Ruby 0.33% C++ 0.10% C 86.06% Tcl 12.91% Makefile 0.25% Smarty 0.02%

redis-6.0's Introduction

redis 源码注释,源码分析,流程分析。全网最新,最全!!! 中文注释字数30万!!!

1、流程分析主要在 md 目录,直接全局查找文件名就行:

AOF-1-版本.md
AOF-2-相关的属性和配置.md
AOF-3-基础流程.md
AOF-4-重写REWRITE.md
RDB-1-相关的属性和配置.md
RDB-2-基础流程.md

命令表的填充和查找流程.md
客户端链接流程和命令处理流程.md

数据类型.md
结构.md
创建.md
编码的改变.md

最大使用内存maxmemory.md
异步删除unlink.md
守护线程daemonize.md
过期策略流程.md


2、核心的类
server.c : 核心的流程,初始化,serverCron
object.c :  基础对象的定义,各种数据的创建
ae.c : 整个 redis 
ae_epoll.c : linux 下 nio 的封装
networking.c : io线程的各种逻辑和网络交互的逻辑
bio.h : 多线程的定义
bio.c :多线程的实现逻辑
aof.c : aof持久化的逻辑
rdb.c : rdb持久化的逻辑
lazyfree.c :延迟释放的逻辑


sds.c : 字符串的实现逻辑
adlist.c :链表的实现逻辑
ziplist.c :压缩列表的实现逻辑

t_string.c :应用层数据的 string 的实现逻辑
t_hash.c :应用层数据的 hash 的实现逻辑
t_list.c :应用层数据的 list 的实现逻辑
t_set.c :应用层数据的 set 的实现逻辑
t_zset.c :应用层数据的 zset 的实现逻辑


3、原来 README.md 改名为 README-BACKUP.md 了

redis-6.0's People

Contributors

kevinhehc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.