TokyoTyrant::__construct

(PECL tokyo_tyrant >= 0.1.0)
Construct a new TokyoTyrant object
public TokyoTyrant::__construct ([ string $host [, int $port = TokyoTyrant::RDBDEF_PORT [, array $options ]]] )

Constructs a new TokyoTyrant object and optionally connects to the database

Parameters:
host

The hostname. Default: NULL

port

port number. Default: 1978

options

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

Returns:

Throws TokyoTyrantException if connection to database fails

See also:

TokyoTyrant::connect() -

TokyoTyrant::connectUri() -

doc_php
2016-02-24 16:18:47
Comments
Leave a Comment

Please login to continue.