Redis
lmm2003
这个作者很懒,什么都没留下…
展开
-
Redis 简介
What Redis means actually?Redis means two things:It means REmote DIctionary ServerIt is a joke on the word RedistributeRedis is an open source, advanced key-value store. It is ofte原创 2011-11-17 17:18:46 · 940 阅读 · 0 评论 -
Redis Internals (strings)
Redis dynamic strings (all strings)String is the basic building block of Redis types.Redis is a key-value store. All Redis keys are strings and its also the simplest value type.Lists, sets原创 2011-11-21 15:35:42 · 1163 阅读 · 0 评论 -
Redis 存储方案
RedisRedisPersistence(持久化存储)Redis提供了不同的持久化方案TheRDB(方案):定期对内存中的数据进行快照,永久存储快照。theAOF(方案):每个修改操作记录在日志中,服务器重启时,根据日志重新构造数据集。禁止持久化存储,数据全部存在内存中。AOF与RDB方案可以结合在一起。2、分布式控制目原创 2011-11-21 14:40:36 · 9764 阅读 · 1 评论 -
Redis zmalloc
#运算符用于创建字符串,#运算符后面应该跟一个形参(中间可以有空格或Tab),例如:#define STR(s) # sSTR(hello world)用cpp命令预处理之后是"hello␣world",自动用"号把实参括起来成为一个字符串,并且实参中的连续多个空白字符被替换成一个空格。再比如:#define STR(s) #sfputs(STR(strncmp("ab\"c原创 2011-11-25 21:41:53 · 2777 阅读 · 0 评论 -
Redis dict
dictHashKey最多有LONG_MAX个桶。在redis中最基本的三个数据结构是dict 、adlist和sds,其中dict是redis中最重要的数据结构了,其key-value的映射关系就是通过dict来实现的,dict的内部实现是hash table,这个哈希表的大小是动态增加或减少的,主要是依据哈希表中的元素个数;同时哈希表适用链接法来解决哈希冲突的,具体实现在dic转载 2011-11-24 23:17:27 · 1085 阅读 · 0 评论 -
Redis 内存相关
Can I backup a Redis DB while the server is working?RDB and AOF files are compatible between 32 bit and 64 bit instances (and between little and big endian of course,文件格式Redis会自己统一) so you c原创 2011-11-21 23:15:37 · 1228 阅读 · 0 评论