Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }