problem about phpredis-Collection of common programming errors


  • Narek
    redis phpredis
    UPDATE – SOLUTION FOR MENeed to install redis-server, in Ubuntu by command: sudo apt-get install redis-serverI installed phpredis, an can see in phpinfo():Redis Version 2.2.3After calling class constructor:$redis = new Redis(); $redis->connect(‘127.0.0.1’, 6379, 2.5);everything is ok.print_r($redis);returns Redis Object ( [socket] => Resource id #21 ). But when I want to call any other method, for example:$redis->info();I got error:Fatal error: Uncaught exception ‘RedisException’ with

  • Stephen Sarcsam Kamenar
    php redis phpredis
    “PHP Fatal error: Uncaught exception ‘RedisException’ with message ‘read error on connection'”The driver here is phpredis$redis->blpop(‘a’, 0);This always times out after ~1 minute. My redis.conf says timeout 0 and $redis->getOption(Redis::OPT_READ_TIMEOUT) returns double(0)If I do this it has never timed out $redis->setOption(Redis::OPT_READ_TIMEOUT, -1);Why do I need -1? Redis documentation says timeout 0 in redis.conf should never time me out.”By default recent versions of Redis don

Web site is in building