Git Product home page Git Product logo

Comments (6)

rchunping avatar rchunping commented on July 3, 2024

或者也可以使用一些不可见字符

#define KEY_PREFIX_HASH 0xFE //定义hashkey前缀字符
#define KEY_PREFIX_ZSET 0xFD //定义zsetkey前缀字符
#define MEMBER_PREFIX 0x01 //key和member之间的分割字符

from redis-storage.

rchunping avatar rchunping commented on July 3, 2024

没人回我就这么干了啊,急等着用

大不了以后做成配置文件自定义 -_-

from redis-storage.

qiye avatar qiye commented on July 3, 2024

key*field 这个是个标识。 跟前缀标识也差不多意思
zset 可以 key+field 用+来标识。 也可以的

from redis-storage.

rchunping avatar rchunping commented on July 3, 2024

没有前缀标示的话

只能靠判断中后位置的 * 和 + 来判断类型,没法知道某一类型的key的大致范围,导致在某一类型中进行key遍历的时候会有太多无效计算,尤其是全局遍历的时候。

from redis-storage.

miketang84 avatar miketang84 commented on July 3, 2024

同意这个观点。

2013/1/30 rchunping [email protected]

没有前缀标示的话

只能靠判断中后位置的 * 和 +
来判断类型,没法知道某一类型的key的大致范围,导致在某一类型中进行key遍历的时候会有太多无效计算,尤其是全局遍历的时候。


Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-12877236.

Nothing is impossible.

from redis-storage.

rchunping avatar rchunping commented on July 3, 2024

hash相关的都实现了 ,代码已经离线发给七夜
差ds_hincrbyfloat没实现,这个貌似不是很必要

from redis-storage.

Related Issues (20)

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.