Git Product home page Git Product logo

godis-tiny's Introduction

简介

发现了一个大佬使用golang语言实现一个redis服务器的项目godis。 对这个项目非常感兴趣,所以就学习一下。

在此记录一下学习记录

已经实现的部分

  • redis的部分命令
  • godis 中的命令处理方式改成了单协程消费,这样我就不用太多的关注内部数据结构的线程安全和锁实现
  • godis 中ttl的实现方式由时钟轮改成了按照过期时间排序的优先队列,采用定时清理和主动随机清理结合的方式来处理过期key
  • 使用gnet作为的网络库
  • aof & aofRewrite

即将学习和实现的部分

  • redis 的5种基本的数据结构
  • rdb
  • redis主从模式

godis-tiny's People

Contributors

xuning888 avatar

Stargazers

去银行整点金条 avatar  avatar  avatar 0xc9e36 avatar  avatar

Watchers

 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.