Search:

Search all manuals
Search this manual
Manual
Membase Client Library: PHP
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Membase Client Library: PHP
Chapters

Chapter 7. Membase Client Library: PHP — Connection Operations

Table 7.1. PHP Client Library Connection Methods

MethodTitle
$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 ])
Asynchronousno
Description Add a server to the connection pool
Returnsscalar ( 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.
API Call$object->getOption($option)
Asynchronousno
Description Retrieve an option
Returnsscalar ( Binary object )
Arguments 
int $option Option controlling connection or server behaviour
API Call$object->setOption($option, $mixed)
Asynchronousno
Description Specify an option
Returnsboolean ( Boolean (true/false) )
Arguments 
int $option Option controlling connection or server behaviour
scalar $mixed Option value (constant, number, or string)