Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Component / FileCache / FileCacheBackendInterface.php
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 }