interface FileCacheBackendInterface in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/FileCache/FileCacheBackendInterface.php \Drupal\Component\FileCache\FileCacheBackendInterface
Defines an interface inspired by APCu for FileCache backends.
Hierarchy
- interface \Drupal\Component\FileCache\FileCacheBackendInterface
Expanded class hierarchy of FileCacheBackendInterface
All classes that implement FileCacheBackendInterface
File
- lib/
Drupal/ Component/ FileCache/ FileCacheBackendInterface.php, line 13 - Contains \Drupal\Component\FileCache\FileCacheBackendInterface.
Namespace
Drupal\Component\FileCacheView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileCacheBackendInterface:: |
public | function | Deletes data from a cache backend. | 1 |
FileCacheBackendInterface:: |
public | function | Fetches data from the cache backend. | 1 |
FileCacheBackendInterface:: |
public | function | Stores data into a cache backend. | 1 |