ApcuFileCacheBackend.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php
  2. 8.9.x core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php
  3. 10 core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php

Namespace

Drupal\Component\FileCache

File

core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php

View source
<?php

namespace Drupal\Component\FileCache;


/**
 * APCu backend for the file cache.
 */
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);
    }

}

Classes

Title Deprecated Summary
ApcuFileCacheBackend APCu backend for the file cache.

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