摘要:
Redis支持很多的参数,但都有默认值。 daemonize:默认情况下,redis不是在后台运行的,如果需要在后台运行,把该项的值更改为yes pidfile当Redis在后台运行的时候,Redis默认会把pid文件放在/var/run/redis.pid,你可以配置到其他地址。当运行多个re 阅读全文
posted @ 2017-05-09 14:33
游浪踏
阅读(189)
评论(0)
推荐(0)
摘要:
1.插入数据 set name caohui2.查询数据 get name3.删除键值 del name4.验证键是否存在 exists name5.setnx 设置key对应的值为string类型的value。如果key已经存在,返回0,nx是not exist的意思。 setnx name yo 阅读全文
posted @ 2017-05-09 14:33
游浪踏
阅读(210)
评论(0)
推荐(0)