Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
core/lib/Drupal/Component/FileCache
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Component\FileCache\FileCacheBackendInterface.
|
||||
*/
|
||||
|
||||
namespace Drupal\Component\FileCache;
|
||||
|
||||
/**
|
||||
* Defines an interface inspired by APCu for FileCache backends.
|
||||
*/
|
||||
interface FileCacheBackendInterface {
|
||||
|
||||
/**
|
||||
* Fetches data from the cache backend.
|
||||
*
|
||||
* @param array $cids
|
||||
* The cache IDs to fetch.
|
||||
*
|
||||
* @return array
|
||||
* An array containing cache entries keyed by cache ID.
|
||||
*/
|
||||
public function fetch(array $cids);
|
||||
|
||||
/**
|
||||
* Stores data into a cache backend.
|
||||
*
|
||||
* @param string $cid
|
||||
* The cache ID to store data to.
|
||||
* @param mixed $data
|
||||
* The data to store.
|
||||
*/
|
||||
public function store($cid, $data);
|
||||
|
||||
/**
|
||||
* Deletes data from a cache backend.
|
||||
*
|
||||
* @param string $cid
|
||||
* The cache ID to delete.
|
||||
*/
|
||||
public function delete($cid);
|
||||
|
||||
}
|
Reference in a new issue