<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.apcu.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.apcu-cache-info.php',
    1 => 'apcu_cache_info',
    2 => 'Извлекает закешированную информацию из хранилища APCu',
  ),
  'up' => 
  array (
    0 => 'ref.apcu.php',
    1 => 'Функции APCu',
  ),
  'prev' => 
  array (
    0 => 'function.apcu-add.php',
    1 => 'apcu_add',
  ),
  'next' => 
  array (
    0 => 'function.apcu-cas.php',
    1 => 'apcu_cas',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/apcu/functions/apcu-cache-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.apcu-cache-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apcu_cache_info</h1>
  <p class="verinfo">(PECL apcu &gt;= 4.0.0)</p><p class="refpurpose"><span class="refname">apcu_cache_info</span> &mdash; <span class="dc-title">
   Извлекает закешированную информацию из хранилища APCu
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.apcu-cache-info-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apcu_cache_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$limited</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   Извлекает закешированную информацию из хранилища APCu.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apcu-cache-info-parameters">
  <h3 class="title">Список параметров</h3>
  <dl>
   
    <dt><code class="parameter">limited</code></dt>
    <dd>
     <span class="simpara">
      Если <code class="parameter">limited</code> задан как <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, возвращаемое
      значение не будет содержать индивидуальный список записей кеша.
      Это полезно при попытках оптимизировать вызовы для получения статистики.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apcu-cache-info-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="simpara">
   Массив кешированных данных (и метаданные) или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, если возникла ошибка
  </p>
  <blockquote class="note"><p><strong class="note">Замечание</strong>: 
   <span class="simpara">
    <span class="function"><strong>apcu_cache_info()</strong></span> вызывает предупреждение, если
    невозможно получить данные кеша APC. Обычно это происходит, если APC не разрешён.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.apcu-cache-info-changelog">
  <h3 class="title">Список изменений</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версия</th>
      <th>Описание</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL apcu 3.0.11</td>
      <td>
       Добавлен параметр <code class="parameter">limited</code>.
      </td>
     </tr>

     <tr>
      <td>PECL apcu 3.0.16</td>
      <td>
       Добавлена опция &quot;<code class="literal">filehits</code>&quot; для параметра
       <code class="parameter">cache_type</code>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.apcu-cache-info-examples">
  <h3 class="title">Примеры</h3>
  <div class="example" id="example-1">
   <p><strong>Пример #1 Пример использования <span class="function"><strong>apcu_cache_info()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">apcu_cache_info</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   
<div class="example-contents"><p>
 Вывод приведённого примера будет похож на:
</p></div>

   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [num_slots] =&gt; 2000
    [ttl] =&gt; 0
    [num_hits] =&gt; 9
    [num_misses] =&gt; 3
    [start_time] =&gt; 1123958803
    [cache_list] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [filename] =&gt; /path/to/apcu_test.php
                    [device] =&gt; 29954
                    [inode] =&gt; 1130511
                    [type] =&gt; file
                    [num_hits] =&gt; 1
                    [mtime] =&gt; 1123960686
                    [creation_time] =&gt; 1123960696
                    [deletion_time] =&gt; 0
                    [access_time] =&gt; 1123962864
                    [ref_count] =&gt; 1
                    [mem_size] =&gt; 677
                )
            [1] =&gt; Array (...итерирует для каждого закешированного файла)
)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apcu-cache-info-seealso">
  <h3 class="title">Смотрите также</h3>
  <ul class="simplelist">
   <li><a href="apcu.configuration.php" class="link">Директивы конфигурации APCu</a></li>
   <li><span class="methodname"><a href="apcuiterator.gettotalsize.php" class="methodname" rel="rdfs-seeAlso">APCUIterator::getTotalSize()</a> - Общий размер кеша</span></li>
   <li><span class="methodname"><a href="apcuiterator.gettotalhits.php" class="methodname" rel="rdfs-seeAlso">APCUIterator::getTotalHits()</a> - Получить общее количество попаданий в кеш</span></li>
   <li><span class="methodname"><a href="apcuiterator.gettotalcount.php" class="methodname" rel="rdfs-seeAlso">APCUIterator::getTotalCount()</a> - Получить общее количество записей</span></li>
  </ul>
 </div>


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