comparison core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Component\FileCache;
4
5 /**
6 * APCu backend for the file cache.
7 */
8 class ApcuFileCacheBackend implements FileCacheBackendInterface {
9
10 /**
11 * {@inheritdoc}
12 */
13 public function fetch(array $cids) {
14 return apcu_fetch($cids);
15 }
16
17 /**
18 * {@inheritdoc}
19 */
20 public function store($cid, $data) {
21 apcu_store($cid, $data);
22 }
23
24 /**
25 * {@inheritdoc}
26 */
27 public function delete($cid) {
28 apcu_delete($cid);
29 }
30
31 }