php - An error occurred while operating redis, can't it be solved?
我想大声告诉你
我想大声告诉你 2017-05-27 17:42:44
0
4
484

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的问题
我想大声告诉你
我想大声告诉你

reply all(4)
曾经蜡笔没有小新

emali->email

漂亮男人

漂亮男人

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. . .

Peter_Zhu

233333

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!