When operating redis, the value of set always cannot come out. It is always the value originally set, and the new value cannot come out?
$redis = new Redis();
$redis->connect('127.0.0.1',6379);
var_dump($redis->set('email','admin@csii.com.cn'));
$redis->set('nickname','jimmm');
echo $redis->get('email');
echo $redis->get('nickname');
echo $redis->get('age');
echo $redis->get('sex');
echo 123;
打印出来结果时:bool(false) 333 男 123
不是email的问题
漂亮男人2017-05-27 17:44:44
false, it already means that your set has failed. I asked you to look at the log /var/log/redis/redis.log before and it was ignored. I am really speechless. . .