interface FileCacheInterface

Interface for objects that allow caching file data.

Parsing YAML, annotations or similar data out of files can be a time-consuming process, especially since those files usually don't change and identical data is parsed over and over again.

File cache is a self-contained caching layer for such processing, that relies on the file modification to ensure that cached data is still up to date and does not need to be invalidated externally.

Hierarchy

File

core/lib/Drupal/Component/FileCache/FileCacheInterface.php, line 16

Namespace

Drupal\Component\FileCache

Members

Name Modifiers Type Description
FileCacheInterface::delete public function Deletes data from the cache.
FileCacheInterface::get public function Gets data based on a filename.
FileCacheInterface::getMultiple public function Gets data based on filenames.
FileCacheInterface::set public function Stores data based on a filename.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!FileCache!FileCacheInterface.php/interface/FileCacheInterface/8.1.x