class ApcuFileCacheBackend

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php \Drupal\Component\FileCache\ApcuFileCacheBackend
  2. 10 core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php \Drupal\Component\FileCache\ApcuFileCacheBackend
  3. 8.9.x core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php \Drupal\Component\FileCache\ApcuFileCacheBackend

APCu backend for the file cache.

Hierarchy

Expanded class hierarchy of ApcuFileCacheBackend

1 file declares its use of ApcuFileCacheBackend
KernelTestBase.php in core/tests/Drupal/KernelTests/KernelTestBase.php

File

core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php, line 8

Namespace

Drupal\Component\FileCache
View source
class ApcuFileCacheBackend implements FileCacheBackendInterface {
  
  /**
   * {@inheritdoc}
   */
  public function fetch(array $cids) {
    return apcu_fetch($cids);
  }
  
  /**
   * {@inheritdoc}
   */
  public function store($cid, $data) {
    apcu_store($cid, $data);
  }
  
  /**
   * {@inheritdoc}
   */
  public function delete($cid) {
    apcu_delete($cid);
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.