<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.apcu.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'class.apcuiterator.php',
    1 => 'APCUIterator',
    2 => 'The APCUIterator class',
  ),
  'up' => 
  array (
    0 => 'book.apcu.php',
    1 => 'APCu',
  ),
  'prev' => 
  array (
    0 => 'function.apcu-store.php',
    1 => 'apcu_store',
  ),
  'next' => 
  array (
    0 => 'apcuiterator.construct.php',
    1 => 'APCUIterator::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/apcu/apcuiterator.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.apcuiterator.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.apcuiterator" class="reference">

 <h1 class="title">The APCUIterator class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL apcu &gt;= 5.0.0)</p>


  <div class="section" id="apcuiterator.intro">
   <h2 class="title">Introduction</h2>
   <p class="simpara">
    The <span class="classname"><strong class="classname">APCUIterator</strong></span> class makes it easier to iterate
    over large APCu caches. This is helpful as it allows iterating over large
    caches in steps, while grabbing a defined number of entries per lock instance,
    so it frees the cache locks for other activities rather than hold up the
    entire cache to grab 100 (the default) entries. Also, using regular expression
    matching is more efficient as it&#039;s been moved to the C level.
   </p>
  </div>


  <div class="section" id="apcuiterator.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">APCUIterator</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.iterator.php" class="interfacename">Iterator</a></span> {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.construct.php" class="methodname">__construct</a></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><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.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$search</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$format</code><span class="initializer"> = APC_ITER_ALL</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$chunk_size</code><span class="initializer"> = 100</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$list</code><span class="initializer"> = APC_LIST_ACTIVE</span></span><br>)</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.current.php" class="methodname">current</a></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.gettotalcount.php" class="methodname">getTotalCount</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.gettotalhits.php" class="methodname">getTotalHits</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.gettotalsize.php" class="methodname">getTotalSize</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.key.php" class="methodname">key</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.next.php" class="methodname">next</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.rewind.php" class="methodname">rewind</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="apcuiterator.valid.php" class="methodname">valid</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


   }</div>


  </div>

 </div>

 













































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="apcuiterator.construct.php">APCUIterator::__construct</a> — Constructs an APCUIterator iterator object</li><li><a href="apcuiterator.current.php">APCUIterator::current</a> — Get current item</li><li><a href="apcuiterator.gettotalcount.php">APCUIterator::getTotalCount</a> — Get total count</li><li><a href="apcuiterator.gettotalhits.php">APCUIterator::getTotalHits</a> — Get total cache hits</li><li><a href="apcuiterator.gettotalsize.php">APCUIterator::getTotalSize</a> — Get total cache size</li><li><a href="apcuiterator.key.php">APCUIterator::key</a> — Get iterator key</li><li><a href="apcuiterator.next.php">APCUIterator::next</a> — Move pointer to next item</li><li><a href="apcuiterator.rewind.php">APCUIterator::rewind</a> — Rewinds iterator</li><li><a href="apcuiterator.valid.php">APCUIterator::valid</a> — Checks if current position is valid</li></ul>
</div>
<?php manual_footer($setup); ?>