Apcu4Backend.php 486 B

123456789101112131415161718192021
  1. <?php
  2. namespace Drupal\Core\Cache;
  3. /**
  4. * Stores cache items in the Alternative PHP Cache User Cache (APCu).
  5. *
  6. * This class is used with APCu versions >= 4.0.0 and < 5.0.0.
  7. */
  8. class Apcu4Backend extends ApcuBackend {
  9. /**
  10. * {@inheritdoc}
  11. *
  12. * @return \APCIterator
  13. */
  14. protected function getIterator($search = NULL, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {
  15. return new \APCIterator('user', $search, $format, $chunk_size, $list);
  16. }
  17. }