memcache.ini.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 267 行

HTML
267
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Runtime Configuration</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="memcache.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="memcache.resources.html">Resource Types</a></div> <div class="up"><a href="memcache.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="memcache.ini" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara">The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.</p> <p class="para">  <table border="5">   <caption><b>Memcache Configuration Options</b></caption>   <colgroup>    <thead valign="middle">     <tr valign="middle">      <th colspan="1">Name</th>      <th colspan="1">Default</th>      <th colspan="1">Changeable</th>      <th colspan="1">Changelog</th>     </tr>    </thead>    <tbody valign="middle" class="tbody">     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">memcache.allow_failover</td>      <td colspan="1" rowspan="1" align="left">&quot;1&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Available since memcache 2.0.2.</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">memcache.max_failover_attempts</td>      <td colspan="1" rowspan="1" align="left">&quot;20&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Available since memcache 2.1.0.</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">memcache.chunk_size</td>      <td colspan="1" rowspan="1" align="left">&quot;8192&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Available since memcache 2.0.2.</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">memcache.default_port</td>      <td colspan="1" rowspan="1" align="left">&quot;11211&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Available since memcache 2.0.2.</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">memcache.hash_strategy</td>      <td colspan="1" rowspan="1" align="left">&quot;standard&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Available since memcache 2.2.0.</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">memcache.hash_function</td>      <td colspan="1" rowspan="1" align="left">&quot;crc32&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Available since memcache 2.2.0.</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">session.save_handler</td>      <td colspan="1" rowspan="1" align="left">&quot;files&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Supported since memcache 2.1.2</td>     </tr>     <tr valign="middle">      <td colspan="1" rowspan="1" align="left">session.save_path</td>      <td colspan="1" rowspan="1" align="left">&quot;&quot;</td>      <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td>      <td colspan="1" rowspan="1" align="left">Supported since memcache 2.1.2</td>     </tr>    </tbody>   </colgroup>  </table>  For further details and definitions of the PHP_INI_* constants, see the <a href="ini.html" class="xref">php.ini directives</a>. </p><p class="para">Here&#039;s a short explanation ofthe configuration directives.</p><p class="para"> <dl>    <dt id="ini.memcache.allow-failover">   <span class="term">    <i><tt class="parameter">memcache.allow_failover</tt></i>    <a href="language.types.boolean.html" class="type boolean">boolean</a>   </span>   <dd>    <p class="para">     Whether to transparently failover to other servers on      errors.    </p>   </dd>  </dt>    <dt id="ini.memcache.max-failover-attempts">   <span class="term">    <i><tt class="parameter">memcache.max_failover_attempts</tt></i>    <a href="language.types.integer.html" class="type integer">integer</a>   </span>   <dd>    <p class="para">     Defines how many servers to try when setting and getting data.     Used only in conjunction with memcache.allow_failover.    </p>   </dd>  </dt>    <dt id="ini.memcache.chunk-size">   <span class="term">    <i><tt class="parameter">memcache.chunk_size</tt></i>    <a href="language.types.integer.html" class="type integer">integer</a>   </span>   <dd>    <p class="para">     Data will be transferred in chunks of this size, setting     the value lower requires more network writes. Try      increasing this value to 32768 if noticing otherwise      inexplicable slowdowns.    </p>   </dd>  </dt>    <dt id="ini.memcache.default-port">   <span class="term">    <i><tt class="parameter">memcache.default_port</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     The default TCP port number to use when connecting to     the memcached server if no other port is specified.    </p>   </dd>  </dt>  <dt id="ini.memcache.hash-strategy">   <span class="term">    <i><tt class="parameter">memcache.hash_strategy</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Controls which strategy to use when mapping keys to servers. Set this value to      <i>consistent</i> to enable consistent hashing which allows servers      to be added or removed from the pool without causing keys to be remapped.     Setting this value to <i>standard</i> results in the old strategy     being used.    </p>   </dd>  </dt>    <dt id="ini.memcache.hash-function">   <span class="term">    <i><tt class="parameter">memcache.hash_function</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Controls which hash function to apply when mapping keys to servers, <i>crc32</i>      uses the standard CRC32 hash while <i>fnv</i> uses FNV-1a.    </p>   </dd>  </dt>  <dt id="ini.memcache.session-handler">   <span class="term">    <i><tt class="parameter">session.save_handler</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Use memcache as a session handler by setting this value to <i>memcache</i>.    </p>   </dd>  </dt>  <dt id="ini.memcache.save-path">   <span class="term">    <i><tt class="parameter">session.save_path</tt></i>    <a href="language.types.string.html" class="type string">string</a>   </span>   <dd>    <p class="para">     Defines a comma separated of server urls to use for session storage, for example     <i>&quot;tcp://host1:11211, tcp://host2:11211&quot;</i>.    </p>    <p class="para">     Each url may contain parameters which are applied to that server, they are the same      as for the <a href="function.memcache-addserver.html" class="function">Memcache::addServer()</a> method. For example      <i>&quot;tcp://host1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15&quot;</i>    </p>   </dd>  </dt> </dl></p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="memcache.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="memcache.resources.html">Resource Types</a></div> <div class="up"><a href="memcache.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?