ConfigCacheInterface (Component\Config)
Symfony\Component\Config\ConfigCacheInterface
interface ConfigCacheInterface
Interface for ConfigCache.
Methods
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. |
Details
public string getPath()
Gets the cache file path.
public bool isFresh()
Checks if the cache is still fresh.
This check should take the metadata passed to the write() method into consideration.
public 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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Config/ConfigCacheInterface.html