PHP Portal » PHP Handbuch » TokyoTyrant::__construct

Werbung

TokyoTyrant::__construct


(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::__constructConstruct a new TokyoTyrant object

Beschreibung

TokyoTyrant::__construct ([ string $host [, int $port = TokyoTyrant::RDBDEF_PORT [, array $options ]]] )

Constructs a new TokyoTyrant object and optionally connects to the database

Parameter-Liste

host

The hostname. Default: NULL

port

The hostname. Default: 1978

options

Connection options: timeout (default: 5.0), reconnect (default: TRUE) and persistent (default: TRUE)

Rückgabewerte

Throws TokyoTyrantException if connection to database fails

Siehe auch