Table 7.1. PHP Client Library Connection Methods
| Method | Title |
|---|---|
$object->getTimeout() | Get the currently configured timeout value for operations |
$object->setTimeout($timeout) | Set the configured timeout value for operations |
| API Call | $object->addServer($host, $port [, $weight ]) | ||
| Asynchronous | no | ||
| Description | Add a server to the connection pool | ||
| Returns | scalar (
Binary object
) | ||
| Arguments | |||
string $host | Addresses a server by hostname or numeric IP address | ||
integer $port | Specifies a TCP port number | ||
integer $weight | Defines the relative weight of a server in the connection pool. | ||