1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files

317 lines
10 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: f4098e2bac4bcc136b95b85badcf4476fa683477 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<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>
Разрешение прозрачного переключения (failover) на другие сервера при
возникновении ошибок.
</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>
Устанавливает номер TCP-порта по умолчанию для подключения к
серверу memcached, если явно не указан иной.
</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>
Установите этот параметр в <literal>memcache</literal> для использования memcache в качестве обработчика сессий.
</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>.
</simpara>
<simpara>
Каждый адрес может содержать параметры, аналогичные используемым в методе <function>Memcache::addServer</function>,
которые будут применены сервером. Например,
<literal>"tcp://host1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;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
-->