GoLang TokyoTyrant::__construct

request it (365)
GoLang replacement for PHP's TokyoTyrant::__construct [edit | history]



Do you know a GoLang replacement for PHP's TokyoTyrant::__construct? Write it!

PHP TokyoTyrant::__construct

PHP original manual for TokyoTyrant::__construct [ show | php.net ]

TokyoTyrant::__construct

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::__constructConstruct a new TokyoTyrant object

Description

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)

Return Values

Throws TokyoTyrantException if connection to database fails

See Also