Closed eebs closed 12 years ago
This also has the benefit of not opening a connection to the Memcache server until it's needed. By using addServer instead of connect or pconnect, servers can be added to the pool but without the overhead of connecting until necessary.
If an array of hosts are used, but a port string, that port will be used for all hosts. If an array of ports is given with an array of hosts, they will be matched by numerical index. If the hosts array is larger than the ports array, the last element in the ports array will be used to pad the ports array to the size of the hosts array. If the ports array is larger than the hosts array the extra port elements are discarded.