protected function ApcuBackend::getIterator

protected ApcuBackend::getIterator($search = NULL, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE)

Instantiates and returns the APCUIterator class.

Parameters

mixed $search: A PCRE regular expression that matches against APC key names, either as a string for a single regular expression, or as an array of regular expressions. Or, optionally pass in NULL to skip the search.

int $format: The desired format, as configured with one or more of the APC_ITER_* constants.

int $chunk_size: The chunk size. Must be a value greater than 0. The default value is 100.

int $list: The type to list. Either pass in APC_LIST_ACTIVE or APC_LIST_DELETED.

Return value

\APCUIterator

File

core/lib/Drupal/Core/Cache/ApcuBackend.php, line 267

Class

ApcuBackend
Stores cache items in the Alternative PHP Cache User Cache (APCu).

Namespace

Drupal\Core\Cache

Code

protected function getIterator($search = NULL, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {
  return new \APCUIterator($search, $format, $chunk_size, $list);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!ApcuBackend.php/function/ApcuBackend::getIterator/8.1.x