1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-27 00:22:08 +01:00
Files
archived-doc-ja/reference/memcache/ini.xml
Yoshinari Takaoka bf47b56f29 Remove memcache session.save_handler and .save_path from ini list
`session.save_handler` and `session.save_path` are INI settings of the
session module.  However, the memcache extension offers the memcache
session handler so it makes sense to document these two INI settings
for the memcache extension, but we don't want to include them in the
general INI list, so we split them into a separate "Additional Memcache
Configuration Options" table.

9bfa379b20
2021-08-07 20:29:09 +09:00

326 lines
9.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9bfa379b20d63ad52b133be32533aca3e04ed10f Maintainer: takagi Status: ready -->
<section xml:id="memcache.ini" xmlns="http://docbook.org/ns/docbook">
&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>PHP_INI_ALL</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>PHP_INI_ALL</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>PHP_INI_ALL</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>PHP_INI_ALL</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>PHP_INI_ALL</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>PHP_INI_ALL</entry>
<entry>memcache 2.2.0 以降で使用可能です</entry>
</row>
<row>
<entry><link linkend="ini.memcache.protocol">memcache.protocol</link></entry>
<entry>ascii</entry>
<entry>>PHP_INI_ALL</entry>
<entry>memcache 3.0.0 以降で使用可能です</entry>
</row>
<row>
<entry><link linkend="ini.memcache.redundancy">memcache.redundancy</link></entry>
<entry>1</entry>
<entry>>PHP_INI_ALL</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>>PHP_INI_ALL</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>>PHP_INI_ALL</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>>PHP_INI_ALL</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>PHP_INI_ALL</entry>
<entry>memcache 2.1.2 以降で利用可能です</entry>
</row>
<row>
<entry><link linkend="ini.memcache.save-path">session.save_path</link></entry>
<entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry>memcache 2.1.2 以降で利用可能です</entry>
</row>
</tbody>
</tgroup>
</table>
&ini.php.constants;
</para>
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.memcache.allow-failover">
<term>
<parameter>memcache.allow_failover</parameter>
<type>bool</type>
</term>
<listitem>
<para>
エラー時に、透過的なフェイルオーバーを行うかどうかを指定します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.max-failover-attempts">
<term>
<parameter>memcache.max_failover_attempts</parameter>
<type>int</type>
</term>
<listitem>
<para>
データの設定や取得を試みるサーバーの数を指定します。
memcache.allow_failover を指定した場合にのみ使用します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.chunk-size">
<term>
<parameter>memcache.chunk_size</parameter>
<type>int</type>
</term>
<listitem>
<para>
データは、ここで指定した大きさに分割されます。
この値を小さくすると、ネットワークに対する書き込みが多くなります。
不可解な速度低下が発生する場合は、この値を
32768 まで大きくしてください。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.default-port">
<term>
<parameter>memcache.default_port</parameter>
<type>string</type>
</term>
<listitem>
<para>
memcached サーバーに接続する際に、
デフォルトで使用される TCP ポート番号。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.hash-strategy">
<term>
<parameter>memcache.hash_strategy</parameter>
<type>string</type>
</term>
<listitem>
<para>
キーをサーバーと関連づけるために使用する方式を制御します。この値を
<literal>consistent</literal> にすると、一貫したハッシュを使用します。
これにより、サーバーを追加したり削除したりした際にキーの再マッピングの必要がなくなります。
この値を <literal>standard</literal> にすると、以前の方法を使用します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.hash-function">
<term>
<parameter>memcache.hash_function</parameter>
<type>string</type>
</term>
<listitem>
<para>
キーをサーバーに関連づける際に使用するハッシュ関数を制御します。
<literal>crc32</literal> は標準の CRC32 ハッシュを、そして
<literal>fnv</literal> は FNV-1a を使用します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.protocol">
<term>
<parameter>memcache.protocol</parameter>
<type>string</type>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.redundancy">
<term>
<parameter>memcache.redundancy</parameter>
<type>int</type>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.session-redundancy">
<term>
<parameter>memcache.session_redundancy</parameter>
<type>int</type>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.compress-threshold">
<term>
<parameter>memcache.compress_threshold</parameter>
<type>int</type>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.lock-timeout">
<term>
<parameter>memcache.lock_timeout</parameter>
<type>int</type>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.save-handler">
<term>
<parameter>session.save_handler</parameter>
<type>string</type>
</term>
<listitem>
<para>
memcache をセッションハンドラとして使用するには、この値を
<literal>memcache</literal> と設定します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.memcache.save-path">
<term>
<parameter>session.save_path</parameter>
<type>string</type>
</term>
<listitem>
<para>
<literal>"tcp://host1:11211, tcp://host2:11211"</literal>.
セッションを格納するためのサーバーの URL を、カンマ区切りで指定します。
たとえば
<literal>"tcp://host1:11211, tcp://host2:11211"</literal>
のようになります。
</para>
<para>
個々の URL には、そのサーバー用のパラメータを含めることができます。
これは
<function>Memcache::addServer</function> メソッドと同じ形式です。
たとえば
<literal>"tcp://host1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15"</literal>
のようになります。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</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
-->