This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php

36 lines
540 B
PHP

<?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 apcu_fetch($cids);
}
/**
* {@inheritdoc}
*/
public function store($cid, $data) {
apcu_store($cid, $data);
}
/**
* {@inheritdoc}
*/
public function delete($cid) {
apcu_delete($cid);
}
}