(PECL tokyo_tyrant >= Unknown)
TokyoTyrant::connect — Connect to a database
Connects to a remote database
The hostname
The port. Default: 1978
Whether to create a persistent connection. Default: TRUE
This method returns the current object and throws TokyoTyrantException on failure.
Przykład #1 TokyoTyrant::connect example
<?php
$tt = new TokyoTyrant();
$tt->connect("localhost", TokyoTyrant::RDBDEF_PORT)->put("test", "value");
?>