interface ConfigCacheInterface
Interface for ConfigCache.
string | getPath() Gets the cache file path. | |
bool | isFresh() Checks if the cache is still fresh. | |
write(string $content, array $metadata = null) Writes the given content into the cache file. Metadata will be stored independently and can be used to check cache freshness at a later time. |
Gets the cache file path.
string | The cache file path |
Checks if the cache is still fresh.
This check should take the metadata passed to the write() method into consideration.
bool | Whether the cache is still fresh |
Writes the given content into the cache file. Metadata will be stored independently and can be used to check cache freshness at a later time.
string | $content | The content to write into the cache |
array | $metadata | An array of ResourceInterface instances |
RuntimeException | When the cache file cannot be written |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/ConfigCacheInterface.html