You are here

ApcuFileCacheBackend.php in Service Container 7

Same filename and directory in other branches
  1. 7.2 lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php

File

lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Component\FileCache\ApcuFileCacheBackend.
 */
namespace Drupal\Component\FileCache;


/**
 * APCu backend for the file cache.
 */
class ApcuFileCacheBackend implements FileCacheBackendInterface {

  /**
   * {@inheritdoc}
   */
  public function fetch(array $cids) {
    return apc_fetch($cids);
  }

  /**
   * {@inheritdoc}
   */
  public function store($cid, $data) {
    apc_store($cid, $data);
  }

  /**
   * {@inheritdoc}
   */
  public function delete($cid) {
    apc_delete($cid);
  }

}

Classes

Namesort descending Description
ApcuFileCacheBackend APCu backend for the file cache.