Coder Social home page Coder Social logo

goredis's Introduction

goredis: 基于 go 实现 redis

📚 前言

笔者在学习 goredis 实现方案的过程中,在很大程度上借鉴了 godis 项目,在此特别致敬一下作者. 附上传送门:https://github.com/HDT3213/godis/

📖 简介

本着学习和实践的目标, 基于 100% 纯度 go 语言实现的 “低配仿制” redis ,实现到的功能点包括:

  • tcp服务端搭建
    • 基于go自带netpoller实现io多路复用
    • 还原redis数据解析协议
  • 常规数据类型与操作指令支持
    • string——get/mget/set/mset
    • list——lpush/lpop/rpush/rpop/lrange
    • set——sadd/sismember/srem
    • hashmap——hset/hget/hdel
    • sortedset——zadd/zremzrangebyscore
  • 数据持久化机制
    • appendonlyfile落盘与重写

💡 goredis 技术原理及源码实现

基于go实现redis之主干框架

基于go实现redis之指令分发

基于go实现redis之存储引擎

基于go实现redis之数据持久化

💻 核心架构

服务端与指令分发层 数据存储引擎层

goredis's People

Contributors

xiaoxuxiansheng 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.