fuel/core — Issue #785: Redis bug with transactions
Author: Djuki
Created: 2012-01-23 16:09:52+00:00
State: open

When using transactions in FuelPHP it takes too long to respond. I found where is the problem.

[code]
$redis = \Redis::instance();
$redis->multi();
$redis->sadd('list', 4);
$redis->sadd('list', 1);
$redis->sadd('list', 55);
$redis->exec();
[/code]

Solution :
In class Fuel\Core\Redis method __call
line 137 is
if ($size == '-1')

i change it to this to fix problem.

if ($size == '-1' or $size == 0)

Problem is that it trying to read from $this->connection when there is nothing to read.