Code Monkey home page Code Monkey logo

大爱生活's Projects

redismodule_qxiu icon redismodule_qxiu

你是否一直觉得,redis的zset 和 hset缺个东西?使的不少场景下程序变得复杂? 没错,它缺个value. 本插件新增 zmap和hnmap和looparr三种数据结构 zmap:是在zset基础上多存个value。 经典场景:一篇文章的评论,评论按点赞排序。key是文章ID,field是评论ID,点赞数是score。好,zset没地方存评论内容了。你需要单独找地方去存。而我的zmap解决了它。 hnset:当你把hset的value当一个数字incr时,你是否又发现缺了个value?hnset就是解决这个场景的。 looparr:乃是定长的容器,适合存储最近的历史数据。

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.