redis) { $datasource = $this->config->datasources['redis']; try { $this->redis = parent::getInstance('Redis'); // new Redis(); $this->redis->connect($datasource['hostname'], $datasource['port']); $this->redis->setOption(Redis::OPT_PREFIX, $datasource['namespace'] . ':'); $this->redis->select($datasource['database']); } catch (RedisException $e) { exit('There was error connecting to Redis :('); } } //var_dump($name, $arguments); return call_user_func_array(array($this->redis, $name), $arguments); } } ?>