예제 #1
0
파일: PredisShared.php 프로젝트: up1/predis
 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;
 }
예제 #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;
 }