mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Better info on the lazy connect bahaviour of addServer()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228839 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
a142babd0f
commit
aacfd79288
1 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<refentry id="function.Memcache-addServer">
|
||||
<refnamediv>
|
||||
<refname>Memcache::addServer</refname>
|
||||
|
@ -22,14 +22,19 @@
|
|||
|
||||
<para>
|
||||
<function>Memcache::addServer</function> adds a server to the connection
|
||||
pool. The actual connection is established on first use.
|
||||
The connection, which was opened using
|
||||
<function>Memcache::addServer</function> will be automatically closed at the
|
||||
end of script execution. Also you can close it with
|
||||
<function>Memcache::close</function>.
|
||||
pool. The connection, which was opened using <function>Memcache::addServer</function>
|
||||
will be automatically closed at the end of script execution, you can also close it
|
||||
manually with <function>Memcache::close</function>.
|
||||
You can also use the <function>memcache_add_server</function> function.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
When using this method (as opposed to <function>Memcache::connect()</function> and
|
||||
<function>Memcache::pconnect()</function>) the network connection is not established
|
||||
until actually needed. Thus there is no overhead in adding a large number of servers
|
||||
to the pool, even though they might not all be used.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Failover may occur at any stage in any of the methods, as long as other
|
||||
servers are available the request the user won't notice. Any kind of
|
||||
|
|
Loading…
Reference in a new issue