Apcu4Backend.php 873 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Drupal\Core\Cache;
  3. @trigger_error(__NAMESPACE__ . '\Apcu4Backend is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Cache\ApcuBackend instead. See https://www.drupal.org/node/3063510.', E_USER_DEPRECATED);
  4. /**
  5. * Stores cache items in the Alternative PHP Cache User Cache (APCu).
  6. *
  7. * This class is used with APCu versions >= 4.0.0 and < 5.0.0.
  8. *
  9. * @deprecated in drupal:8.8.0 and is removed from from drupal:9.0.0.
  10. * Use \Drupal\Core\Cache\ApcuBackend instead.
  11. *
  12. * @see https://www.drupal.org/node/3063510
  13. */
  14. class Apcu4Backend extends ApcuBackend {
  15. /**
  16. * {@inheritdoc}
  17. *
  18. * @return \APCIterator
  19. */
  20. protected function getIterator($search = NULL, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {
  21. return new \APCIterator('user', $search, $format, $chunk_size, $list);
  22. }
  23. }