var_dump($redis->setItem(‘zzc‘, ‘110@gmail.com‘));一直提示false,apache日志中也没有错误,
此时,在命令行下执行redis-cli
set name lyblog
出现错误信息:MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.
执行
config set stop-writes-on-bgsave-error no
后ok 了
var_dump($redis->setItem(‘zzc‘, ‘zhangzhican110@gmail.com‘));就提示true了
原文地址:http://blog.csdn.net/wang_quan_li/article/details/42874939