class ConfigCache
ConfigCache manages PHP cache files.
When debug is enabled, it knows when to flush the cache
thanks to an array of ResourceInterface instances.
Methods
|
__construct(string $file, Boolean $debug)
Constructor. |
||
| string |
__toString()
Gets the cache file path. |
|
| Boolean |
isFresh()
Checks if the cache is still fresh. |
|
|
write(string $content, array $metadata = null)
Writes cache. |
Details
at line 36
public
__construct(string $file, Boolean $debug)
Constructor.
at line 47
public string
__toString()
Gets the cache file path.
at line 60
public Boolean
isFresh()
Checks if the cache is still fresh.
This method always returns true when debug is off and the
cache file exists.
at line 94
public
write(string $content, array $metadata = null)
Writes cache.