<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/yac.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'yac.configuration.php',
    1 => 'Налаштування під час виконання',
    2 => 'Налаштування під час виконання',
  ),
  'up' => 
  array (
    0 => 'yac.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'prev' => 
  array (
    0 => 'yac.installation.php',
    1 => 'Встановлення',
  ),
  'next' => 
  array (
    0 => 'yac.resources.php',
    1 => 'Типи ресурсів',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yac/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yac.configuration" class="section">
 <h2 class="title">Налаштування під час виконання</h2>
 <p class="simpara">
На поведінку цих функцій випливають налаштування в <var class="filename">php.ini</var>.
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Yac Параметри конфігурації</strong></caption>
   
    <thead>
     <tr>
      <th>Назва</th>
      <th>Початково</th>
      <th>Де можна змінювати</th>
      <th>Журнал змін</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="yac.configuration.php#ini.yac.compress-threshold" class="link">yac.compress_threshold</a></td>
      <td>4K</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="yac.configuration.php#ini.yac.debug" class="link">yac.debug</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="yac.configuration.php#ini.yac.enable" class="link">yac.enable</a></td>
      <td>1</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="yac.configuration.php#ini.yac.enable-cli" class="link">yac.enable_cli</a></td>
      <td>0</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="yac.configuration.php#ini.yac.keys-memory-size" class="link">yac.keys_memory_size</a></td>
      <td>8M</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="yac.configuration.php#ini.yac.serializer" class="link">yac.serializer</a></td>
      <td>php</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="yac.configuration.php#ini.yac.values-memory-size" class="link">yac.values_memory_size</a></td>
      <td>64M</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">Тут є коротке пояснення директив
конфігурації.</p>

 <p class="para">
  <dl>
   
     <dt id="ini.yac.compress-threshold">
      <code class="parameter">yac.compress_threshold</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Serialized values larger than this number of bytes are
       compressed (with LZ4, since Yac 2.4.0) before being stored.
       Values above the <code class="literal">1M</code> stored entry limit
       (<strong><code><a href="yac.constants.php#constant.yac-max-raw-compressed-len">YAC_MAX_RAW_COMPRESSED_LEN</a></code></strong>) are always
       compressed regardless of this setting, because they cannot be
       stored uncompressed. The default of <code class="literal">4K</code>
       enables compression; <code class="literal">-1</code> disables it for
       values below the stored entry limit, and other positive values
       are clamped to the
       <code class="literal">1024</code>..<code class="literal">1M</code> range.
       Compressing large values saves shared memory at the cost of
       some CPU on both store and retrieve.
      </p>
     </dd>
    
    
     <dt id="ini.yac.debug">
      <code class="parameter">yac.debug</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Reserved for debugging. As of Yac 2.4.0 this directive is
       registered but has no effect.
      </p>
     </dd>
    
    
     <dt id="ini.yac.enable">
      <code class="parameter">yac.enable</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Whether Yac is enabled. If disabled, creating a
       <span class="classname"><a href="class.yac.php" class="classname">Yac</a></span> instance throws an exception.
      </p>
     </dd>
    
    
     <dt id="ini.yac.enable-cli">
      <code class="parameter">yac.enable_cli</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Whether Yac is enabled when running under the
       <code class="literal">CLI</code> SAPI. It is disabled by default because
       command line scripts usually start and stop immediately, and the
       shared memory segment would be created for nothing.
      </p>
     </dd>
    
    
     <dt id="ini.yac.keys-memory-size">
      <code class="parameter">yac.keys_memory_size</code>
      <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Amount of shared memory for the table of keys. It caps how many
       entries can exist at once — the default of
       <code class="literal">8M</code> gives around 65,536 entries. Raise this
       when the hit rate drops and <code class="literal">kicks</code> climb; see
       <a href="yac.memory-management.php" class="xref">Memory Management</a> for how a full table
       behaves and when that actually matters.
      </p>
     </dd>
    
    
     <dt id="ini.yac.values-memory-size">
      <code class="parameter">yac.values_memory_size</code>
      <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Amount of shared memory for storing values. Values are allocated
       in a bump allocator over segments of 4M each; when no segment has
       room for a new value, an allocator cursor wraps and the oldest
       values are silently overwritten (&quot;recycled&quot;). Their reads then
       degrade to misses, detected by an integrity guard. Enlarge this
       if <code class="literal">recycles</code> climb while slots still have room,
       or enable <a href="yac.configuration.php#ini.yac.compress-threshold" class="link">yac.compress_threshold</a>
       to shrink large payloads. See <a href="yac.memory-management.php" class="xref">Memory Management</a>.
      </p>
     </dd>
    
    
     <dt id="ini.yac.serializer">
      <code class="parameter">yac.serializer</code>
      <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     </dt>
     <dd>
      <p class="simpara">
       Serializer used to turn arbitrary PHP values into bytes before
       storing them. Allowed values are <code class="literal">php</code> (the
       default), <code class="literal">json</code>, <code class="literal">igbinary</code> and
       <code class="literal">msgpack</code>. The latter three require the extension
       to be built with the corresponding support. Binary serializers such
       as <code class="literal">igbinary</code> and <code class="literal">msgpack</code> are
       typically faster and produce smaller payloads than
       <code class="literal">php</code>.
      </p>
     </dd>
    

  </dl>
 </p>
</div><?php manual_footer($setup); ?>