文章分类 -  redis

redis的pconnect与connect连接
摘要:From : http://www.v2ex.com/t/95635 Short Version: 如果你的应用/服务, 可以有独立的进程, 使用自己的内存, 就可以放心地用 pconnect. Story Version: 几个月前, 同事遇到了这么一个 pconnect on php 的坑: 一 阅读全文
posted @ 2016-05-12 22:26 阿卡贝拉 阅读(457) 评论(0) 推荐(0)
bitop命令
摘要:redis> SETBIT bits-1 0 1 # bits-1 = 1001(integer) 0redis> SETBIT bits-1 3 1(integer) 0redis> SETBIT bits-2 0 1 # bits-2 = 1011(integer) ... 阅读全文
posted @ 2016-01-02 12:45 阿卡贝拉 阅读(208) 评论(0) 推荐(0)
redis-aof
摘要:优点比RDB可靠。你可以制定不同的fsync策略:不进行fsync、每秒fsync一次和每次查询进行fsync。默认是每秒fsync一次。这意味着你最多丢失一秒钟的数据。AOF日志文件是一个纯追加的文件。就算是遇到突然停电的情况,也不会出现日志的定位或者损坏问题。甚至如果因为某些原因(例如磁盘满了)... 阅读全文
posted @ 2016-01-01 19:38 阿卡贝拉 阅读(110) 评论(0) 推荐(0)
安装redis
摘要:wget 版本tar zxvf ~makemake PREFIX=/usr/local/redis installcd bincp /usr/local/src/red~/redis.conf ././bin/redis-server ./redis-conf另个窗口./bin/redis-cli后... 阅读全文
posted @ 2015-12-27 09:58 阿卡贝拉 阅读(67) 评论(0) 推荐(0)
redis
摘要:报错:jemalloc/jemalloc.h: No such file or directory – RedisTo install redis , given below dependencies are require :1.jemalloc2.hiredis3.lua4.linenoiseH... 阅读全文
posted @ 2015-12-27 09:24 阿卡贝拉 阅读(87) 评论(0) 推荐(0)