mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 07:02:08 +01:00
323 lines
9.6 KiB
XML
323 lines
9.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: f4098e2bac4bcc136b95b85badcf4476fa683477 Maintainer: takagi Status: ready -->
|
|
<section xmlns="http://docbook.org/ns/docbook" xml:id="memcache.ini">
|
|
&reftitle.runtime;
|
|
&extension.runtime;
|
|
<para>
|
|
<table>
|
|
<title>Memcache 設定オプション</title>
|
|
<tgroup cols="4">
|
|
<thead>
|
|
<row>
|
|
<entry>&Name;</entry>
|
|
<entry>&Default;</entry>
|
|
<entry>&Changeable;</entry>
|
|
<entry>&Changelog;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody xml:id="memcache.ini.list">
|
|
<row>
|
|
<entry><link linkend="ini.memcache.allow-failover">memcache.allow_failover</link></entry>
|
|
<entry>"1"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.0.2 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.max-failover-attempts">memcache.max_failover_attempts</link></entry>
|
|
<entry>"20"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.1.0 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.chunk-size">memcache.chunk_size</link></entry>
|
|
<entry>"8192"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.0.2 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.default-port">memcache.default_port</link></entry>
|
|
<entry>"11211"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.0.2 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.hash-strategy">memcache.hash_strategy</link></entry>
|
|
<entry>"standard"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.2.0 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.hash-function">memcache.hash_function</link></entry>
|
|
<entry>"crc32"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.2.0 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.protocol">memcache.protocol</link></entry>
|
|
<entry>ascii</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 3.0.0 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.redundancy">memcache.redundancy</link></entry>
|
|
<entry>1</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 3.0.0 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.session-redundancy">memcache.session_redundancy</link></entry>
|
|
<entry>2</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 3.0.0 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.compress-threshold">memcache.compress_threshold</link></entry>
|
|
<entry>20000</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 3.0.3 以降で使用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.lock-timeout">memcache.lock_timeout</link></entry>
|
|
<entry>15</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 3.0.4 以降で使用可能です</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
<table>
|
|
<title>Memcache の振る舞いに影響する、セッションの設定オプション</title>
|
|
<tgroup cols="4">
|
|
<thead>
|
|
<row>
|
|
<entry>&Name;</entry>
|
|
<entry>&Default;</entry>
|
|
<entry>&Changeable;</entry>
|
|
<entry>&Changelog;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody xml:id="memcache.ini.list.extra">
|
|
<row>
|
|
<entry><link linkend="ini.memcache.save-handler">session.save_handler</link></entry>
|
|
<entry>"files"</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.1.2 以降で利用可能です</entry>
|
|
</row>
|
|
<row>
|
|
<entry><link linkend="ini.memcache.save-path">session.save_path</link></entry>
|
|
<entry>""</entry>
|
|
<entry><constant>INI_ALL</constant></entry>
|
|
<entry>memcache 2.1.2 以降で利用可能です</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
&ini.php.constants;
|
|
</para>
|
|
|
|
&ini.descriptions.title;
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry xml:id="ini.memcache.allow-failover">
|
|
<term>
|
|
<parameter>memcache.allow_failover</parameter>
|
|
<type>bool</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
エラー時に、透過的なフェイルオーバーを行うかどうかを指定します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.max-failover-attempts">
|
|
<term>
|
|
<parameter>memcache.max_failover_attempts</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
データの設定や取得を試みるサーバーの数を指定します。
|
|
memcache.allow_failover を指定した場合にのみ使用します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.chunk-size">
|
|
<term>
|
|
<parameter>memcache.chunk_size</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
データは、ここで指定した大きさに分割されます。
|
|
この値を小さくすると、ネットワークに対する書き込みが多くなります。
|
|
不可解な速度低下が発生する場合は、この値を
|
|
32768 まで大きくしてください。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.default-port">
|
|
<term>
|
|
<parameter>memcache.default_port</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
memcached サーバーに接続する際に、
|
|
デフォルトで使用される TCP ポート番号。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.hash-strategy">
|
|
<term>
|
|
<parameter>memcache.hash_strategy</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
キーをサーバーと関連づけるために使用する方式を制御します。この値を
|
|
<literal>consistent</literal> にすると、一貫したハッシュを使用します。
|
|
これにより、サーバーを追加したり削除したりした際にキーの再マッピングの必要がなくなります。
|
|
この値を <literal>standard</literal> にすると、以前の方法を使用します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.hash-function">
|
|
<term>
|
|
<parameter>memcache.hash_function</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
キーをサーバーに関連づける際に使用するハッシュ関数を制御します。
|
|
<literal>crc32</literal> は標準の CRC32 ハッシュを、そして
|
|
<literal>fnv</literal> は FNV-1a を使用します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.protocol">
|
|
<term>
|
|
<parameter>memcache.protocol</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.redundancy">
|
|
<term>
|
|
<parameter>memcache.redundancy</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.session-redundancy">
|
|
<term>
|
|
<parameter>memcache.session_redundancy</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.compress-threshold">
|
|
<term>
|
|
<parameter>memcache.compress_threshold</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.lock-timeout">
|
|
<term>
|
|
<parameter>memcache.lock_timeout</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.save-handler">
|
|
<term>
|
|
<parameter>session.save_handler</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
memcache をセッションハンドラとして使用するには、この値を
|
|
<literal>memcache</literal> と設定します。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="ini.memcache.save-path">
|
|
<term>
|
|
<parameter>session.save_path</parameter>
|
|
<type>string</type>
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
<literal>"tcp://host1:11211, tcp://host2:11211"</literal>.
|
|
セッションを格納するためのサーバーの URL を、カンマ区切りで指定します。
|
|
たとえば
|
|
<literal>"tcp://host1:11211, tcp://host2:11211"</literal>
|
|
のようになります。
|
|
</simpara>
|
|
<simpara>
|
|
個々の URL には、そのサーバー用のパラメータを含めることができます。
|
|
これは
|
|
<function>Memcache::addServer</function> メソッドと同じ形式です。
|
|
たとえば
|
|
<literal>"tcp://host1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"</literal>
|
|
のようになります。
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</section>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|