Comments (6)
或者也可以使用一些不可见字符
#define KEY_PREFIX_HASH 0xFE //定义hashkey前缀字符
#define KEY_PREFIX_ZSET 0xFD //定义zsetkey前缀字符
#define MEMBER_PREFIX 0x01 //key和member之间的分割字符
from redis-storage.
没人回我就这么干了啊,急等着用
大不了以后做成配置文件自定义 -_-
from redis-storage.
key*field 这个是个标识。 跟前缀标识也差不多意思
zset 可以 key+field 用+来标识。 也可以的
from redis-storage.
没有前缀标示的话
只能靠判断中后位置的 * 和 + 来判断类型,没法知道某一类型的key的大致范围,导致在某一类型中进行key遍历的时候会有太多无效计算,尤其是全局遍历的时候。
from redis-storage.
同意这个观点。
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.
hash相关的都实现了 ,代码已经离线发给七夜
差ds_hincrbyfloat没实现,这个貌似不是很必要
from redis-storage.
Related Issues (20)
- rl_系列命令有问题 HOT 6
- ds_append 命令错误操作 HOT 4
- ds_keys_asc,ds_keys_desc 导致 redis-storage 崩溃 HOT 3
- 编译问题 HOT 13
- 启动运行出错 HOT 3
- 编译找不到libleveldb库 HOT 1
- ds.c补丁,修复ds_hgetall崩溃的问题,另外将一些返回值与redis保持一致 HOT 1
- 贡献一个python客户端 HOT 2
- 运行问题? HOT 2
- make init error HOT 1
- ds_set 可以代替 ds_update来用
- 支持过期机制么? HOT 3
- leveldb update 问题 HOT 1
- 主从的话一台机子行不 HOT 1
- 是否可以支持 redis 3
- 键删除问题 HOT 2
- 这个项目是不维护了吧,很久没有更新了
- 编译出错 ds.c HOT 2
- ds_mget返回格式变了 HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-storage.