downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

TokyoTyrant::copy> <TokyoTyrant::connectUri
[edit] Last updated: Fri, 24 May 2013

view this page in

TokyoTyrant::__construct

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::__constructConstruct a new TokyoTyrant object

Descripción

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

Constructs a new TokyoTyrant object and optionally connects to the database

Parámetros

host

The hostname. Default: NULL

port

port number. Default: 1978

options

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

Valores devueltos

Throws TokyoTyrantException if connection to database fails

Ver también



add a note add a note User Contributed Notes TokyoTyrant::__construct - [1 notes]
up
0
bit dot kevin at gmail dot com
2 years ago
Catch The Exception
<?php
       
try {
           
$tt = new TokyoTyrant("192.168.1.100", 11211);
        }catch (
TokyoTyrantException $e) {
           
var_dump($e);
            exit;
        }
?>

 
show source | credits | sitemap | contact | advertising | mirror sites