<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.wincache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.wincache-fcache-fileinfo.php',
    1 => 'wincache_fcache_fileinfo',
    2 => 'ファイルキャッシュにキャッシュされたファイルについての情報を取得する',
  ),
  'up' => 
  array (
    0 => 'ref.wincache.php',
    1 => 'WinCache 関数',
  ),
  'prev' => 
  array (
    0 => 'ref.wincache.php',
    1 => 'WinCache 関数',
  ),
  'next' => 
  array (
    0 => 'function.wincache-fcache-meminfo.php',
    1 => 'wincache_fcache_meminfo',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/wincache/functions/wincache-fcache-fileinfo.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.wincache-fcache-fileinfo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">wincache_fcache_fileinfo</h1>
  <p class="verinfo">(PECL wincache &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">wincache_fcache_fileinfo</span> &mdash; <span class="dc-title">
   ファイルキャッシュにキャッシュされたファイルについての情報を取得する
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.wincache-fcache-fileinfo-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>wincache_fcache_fileinfo</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$summaryonly</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="para rdfs-comment">
   ファイルキャッシュの中身とその利用状況についての情報を取得します。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.wincache-fcache-fileinfo-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">summaryonly</code></dt>
     <dd>
      <p class="para">
       返される配列に、ファイルキャッシュの概要に加えて個々のキャッシュエントリの情報を含めるかどうか。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.wincache-fcache-fileinfo-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   ファイルキャッシュについてのメタデータの配列を返します。失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します
  </p>
  <p class="para">
   この関数が返す配列には次の要素が含まれます。
   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
      <code class="literal">total_cache_uptime</code> - ファイルキャッシュがアクティブになってからの経過秒数。
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">total_file_count</code> - 現在ファイルキャッシュに入っているファイルの数。
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">total_hit_count</code> - ファイルキャッシュからファイルが取り出された回数。
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <code class="literal">total_miss_count</code> - ファイルがファイルキャッシュに見つからなかった回数。
     </span>
    </li>
    <li class="listitem">
     <p class="para">
      <code class="literal">file_entries</code> - キャッシュされているファイルに関する情報を含む配列。
      <ul class="itemizedlist">
       <li class="listitem">
        <span class="simpara">
         <code class="literal">file_name</code> - キャッシュされているファイルの絶対パスでのファイル名。
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <code class="literal">add_time</code> - ファイルキャッシュに追加されてからの経過秒数。
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <code class="literal">use_time</code> - ファイルキャッシュ内でアクセスされてからの経過秒数。
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <code class="literal">last_check</code> - ファイルの変更をチェックされてからの経過秒数。
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <code class="literal">hit_count</code> - ファイルがキャッシュから取り出された回数。
        </span>
       </li>
       <li class="listitem">
        <span class="simpara">
         <code class="literal">file_size</code> - キャッシュされたファイルのサイズ (バイト単位)。
        </span>
       </li>
      </ul>
     </p>
    </li>
   </ul>
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.wincache-fcache-fileinfo-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>wincache_fcache_fileinfo()</strong></span> の例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">&lt;pre&gt;<br /><span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">wincache_fcache_fileinfo</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;<br /></span>&lt;/pre&gt;</span></code></div>
    </div>

    <div class="example-contents"><p>上の例の出力は以下となります。</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(   [total_cache_uptime] =&gt; 3234
    [total_file_count] =&gt; 5
    [total_hit_count] =&gt; 0
    [total_miss_count] =&gt; 1
    [file_entries] =&gt; Array
        (
            [1] =&gt; Array
                (
                    [file_name] =&gt; c:\inetpub\wwwroot\checkcache.php
                    [add_time] =&gt; 1
                    [use_time] =&gt; 0
                    [last_check] =&gt; 1
                    [hit_count] =&gt; 1
                    [file_size] =&gt; 2435
                )
            [2] =&gt; Array (...iterates for each cached file)
        )
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.wincache-fcache-fileinfo-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.wincache-fcache-meminfo.php" class="function" rel="rdfs-seeAlso">wincache_fcache_meminfo()</a> - ファイルキャッシュのメモリ使用状況についての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-ocache-fileinfo.php" class="function" rel="rdfs-seeAlso">wincache_ocache_fileinfo()</a> - opcode キャッシュにキャッシュされたファイルについての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-ocache-meminfo.php" class="function" rel="rdfs-seeAlso">wincache_ocache_meminfo()</a> - opcode キャッシュのメモリ使用状況についての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-rplist-fileinfo.php" class="function" rel="rdfs-seeAlso">wincache_rplist_fileinfo()</a> - ファイルパス解決キャッシュについての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-rplist-meminfo.php" class="function" rel="rdfs-seeAlso">wincache_rplist_meminfo()</a> - ファイルパス解決キャッシュのメモリ使用状況についての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-refresh-if-changed.php" class="function" rel="rdfs-seeAlso">wincache_refresh_if_changed()</a> - キャッシュされたファイルのキャッシュエントリをリフレッシュする</span></li>
    <li><span class="function"><a href="function.wincache-ucache-meminfo.php" class="function" rel="rdfs-seeAlso">wincache_ucache_meminfo()</a> - ユーザーキャッシュのメモリ使用状況についての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-ucache-info.php" class="function" rel="rdfs-seeAlso">wincache_ucache_info()</a> - ユーザーキャッシュにキャッシュされたファイルについての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-scache-info.php" class="function" rel="rdfs-seeAlso">wincache_scache_info()</a> - セッションキャッシュにキャッシュされたファイルについての情報を取得する</span></li>
    <li><span class="function"><a href="function.wincache-scache-meminfo.php" class="function" rel="rdfs-seeAlso">wincache_scache_meminfo()</a> - セッションキャッシュのメモリ使用状況についての情報を取得する</span></li>
   </ul>
  </p>
 </div>


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