I'm trying to use Redis to manage cache and the php sessions, but I'm encountering a weird issue. I've traced the problem down to the save function. I'm testing the following code:
$oFrontCache = new Phalcon\Cache\Frontend\Data(array('lifetime' => 172800)); $oRedis = new Phalcon\Cache\Backend\Redis($oFrontCache, array('redis' => $asRedisConf)); echo '<pre>'; var_dump($oRedis); //everything is fine here echo '</pre>'; $oRedis->save('my-data', array(1, 2, 3, 4, 5)); //Fatal error: Class 'redis' not found ...
I'm using Phalcon 2.0.0, I can't see any reason for that and can't find any workaround. I'd appreciate any help on this.