search

Home  >  Q&A  >  body text

php - An error occurred while operating redis, can't it be solved?

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

reply all(4)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-27 17:44:44

    emali->email

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-27 17:44:44

    reply
    0
  • 漂亮男人

    漂亮男人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. . .

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-27 17:44:44

    233333

    reply
    0
  • Cancelreply