Ejemplo n.º 1
0
 private static function createConnection()
 {
     $serverProfile = Predis_RedisServerProfile::get('2.2');
     $connection = new Predis_Client(RC::getConnectionArguments(), $serverProfile);
     $connection->connect();
     $connection->select(RC::DEFAULT_DATABASE);
     return $connection;
 }