ApcuFileCacheBackend.php 460 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Drupal\Component\FileCache;
  3. /**
  4. * APCu backend for the file cache.
  5. */
  6. class ApcuFileCacheBackend implements FileCacheBackendInterface {
  7. /**
  8. * {@inheritdoc}
  9. */
  10. public function fetch(array $cids) {
  11. return apcu_fetch($cids);
  12. }
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function store($cid, $data) {
  17. apcu_store($cid, $data);
  18. }
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function delete($cid) {
  23. apcu_delete($cid);
  24. }
  25. }