随笔分类 -  Redis

 
Redis-Sampler:深入了解你的Redis存储
摘要:redis-sampler是Redis作者@antirez同学开发的一个ruby 小工具,用于对Redis存储概况进行抽样检测并给出分析结果。项目地址:https://github.com/antirez/redis-sampler使用方式:下载源码,执行下面命令:./redis-sampler.rb host,port和db三个参数都不用解释(db默认为0),samplesize 就是这个抽样检测的样本数量。脚本输出如下例:Sampling localhost:6379 DB:4 with 1000000 RANDOMKEYS TYPES ===== zset: 873268 (8... 阅读全文
posted @ 2011-10-20 16:20 卡莱 阅读(480) 评论(0) 推荐(0)
Redis实现MongoDB的getlasterror功能
摘要:MongoDB有一个命令叫getlasterror,从名字上看它的作用好像是获取最近的一个error。但其实这是MongoDB的一种客户端阻塞的方式。官方的解释如下:MongoDB does not wait for a response by default when writing to the database. Use thegetLastErrorcommand to ensure that operations have succeeded.MongoDB 在写操作时,默认不会等数据写完后才返回,你可以通过使用getLastError命令来保证你的写是成功的。说白了,MongoDB 阅读全文
posted @ 2011-10-20 16:17 卡莱 阅读(490) 评论(0) 推荐(0)
Redis学习资料参考地址
摘要:www.nosqlfan.comwww.redis.iohttp://redis.readthedocs.org/en/latest/http://try.redis-db.com/ 阅读全文
posted @ 2011-10-19 09:07 卡莱 阅读(109) 评论(0) 推荐(0)