comparison core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.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 * Defines an interface inspired by APCu for FileCache backends.
7 */
8 interface FileCacheBackendInterface {
9
10 /**
11 * Fetches data from the cache backend.
12 *
13 * @param array $cids
14 * The cache IDs to fetch.
15 *
16 * @return array
17 * An array containing cache entries keyed by cache ID.
18 */
19 public function fetch(array $cids);
20
21 /**
22 * Stores data into a cache backend.
23 *
24 * @param string $cid
25 * The cache ID to store data to.
26 * @param mixed $data
27 * The data to store.
28 */
29 public function store($cid, $data);
30
31 /**
32 * Deletes data from a cache backend.
33 *
34 * @param string $cid
35 * The cache ID to delete.
36 */
37 public function delete($cid);
38
39 }