<?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 => 'de', ), 'this' => array ( 0 => 'function.apcu-key-info.php', 1 => 'apcu_key_info', 2 => 'Get detailed information about the cache key', ), 'up' => array ( 0 => 'ref.apcu.php', 1 => 'APCu Funktionen', ), 'prev' => array ( 0 => 'function.apcu-inc.php', 1 => 'apcu_inc', ), 'next' => array ( 0 => 'function.apcu-sma-info.php', 1 => 'apcu_sma_info', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/apcu/functions/apcu-key-info.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="function.apcu-key-info" class="refentry"> <div class="refnamediv"> <h1 class="refname">apcu_key_info</h1> <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">apcu_key_info</span> — <span class="dc-title"> Get detailed information about the cache key </span></p> </div> <div class="refsect1 description" id="refsect1-function.apcu-key-info-description"> <h3 class="title">Beschreibung</h3> <div class="methodsynopsis dc-description"> <span class="methodname"><strong>apcu_key_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.array.php" class="type array">array</a></span></span></div> <p class="para rdfs-comment"> Get detailed information about the cache key </p> </div> <div class="refsect1 parameters" id="refsect1-function.apcu-key-info-parameters"> <h3 class="title">Parameter-Liste</h3> <p class="para"> <dl> <dt><code class="parameter">key</code></dt> <dd> <p class="para"> Get detailed information about the cache key </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.apcu-key-info-returnvalues"> <h3 class="title">Rückgabewerte</h3> <p class="para"> An array containing the detailed information about the cache key, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if the key does not exist. </p> </div> <div class="refsect1 examples" id="refsect1-function.apcu-key-info-examples"> <h3 class="title">Beispiele</h3> <p class="para"> <div class="example" id="example-589"> <p><strong>Beispiel #1 A <span class="function"><strong>apcu_key_info()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />apcu_add</span><span style="color: #007700">(</span><span style="color: #DD0000">'a'</span><span style="color: #007700">,</span><span style="color: #DD0000">'b'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">apcu_key_info</span><span style="color: #007700">(</span><span style="color: #DD0000">'a'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div> <div class="example-contents screen"> <div class="examplescode"><pre class="examplescode">array(7) { ["hits"]=> int(0) ["access_time"]=> int(1606701783) ["mtime"]=> int(1606701783) ["creation_time"]=> int(1606701783) ["deletion_time"]=> int(0) ["ttl"]=> int(0) ["refs"]=> int(0) }</pre> </div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-function.apcu-key-info-seealso"> <h3 class="title">Siehe auch</h3> <p class="para"> <ul class="simplelist"> <li><span class="function"><a href="function.apcu-store.php" class="function" rel="rdfs-seeAlso">apcu_store()</a> - Cache a variable in the data store</span></li> <li><span class="function"><a href="function.apcu-fetch.php" class="function" rel="rdfs-seeAlso">apcu_fetch()</a> - Fetch a stored variable from the cache</span></li> <li><span class="function"><a href="function.apcu-delete.php" class="function" rel="rdfs-seeAlso">apcu_delete()</a> - Removes a stored variable from the cache</span></li> </ul> </p> </div> </div><?php manual_footer($setup); ?>