private static function createConnection() { $serverProfile = Predis\RedisServerProfile::get('dev'); $connection = new Predis\Client(RC::getConnectionArguments(), $serverProfile); $connection->connect(); $connection->select(RC::DEFAULT_DATABASE); return $connection; }
private static function createConnection() { $serverProfile = Predis\RedisServerProfile::get('dev'); $connection = new Predis\Client(array('host' => RC::SERVER_HOST, 'port' => RC::SERVER_PORT), $serverProfile); $connection->connect(); $connection->selectDatabase(RC::DEFAULT_DATABASE); return $connection; }