|
| __construct ($baseDir, $fileMode=null) |
| Filesystem cache constructor.
|
|
| cache ($key, $value) |
| Cache and load the compiled class.
|
|
| getLogger () |
| Get the current logger instance.
|
|
| load ($key) |
| Load the class from cache using require_once .
|
|
| setLogger ($logger=null) |
| Set a logger instance.
|
|
|
| getCacheFilename ($name) |
| Build the cache filename.
|
|
| log ($level, $message, array $context=array()) |
| Add a log record if logging is enabled.
|
|
◆ __construct()
Mustache_Cache_FilesystemCache::__construct |
( |
| $baseDir, |
|
|
| $fileMode = null ) |
Filesystem cache constructor.
- Parameters
-
string | $baseDir | Directory for compiled templates |
int | $fileMode | Override default permissions for cache files. Defaults to using the system-defined umask |
◆ cache()
Mustache_Cache_FilesystemCache::cache |
( |
| $key, |
|
|
| $value ) |
◆ getCacheFilename()
Mustache_Cache_FilesystemCache::getCacheFilename |
( |
| $name | ) |
|
|
protected |
Build the cache filename.
Subclasses should override for custom cache directory structures.
- Parameters
-
- Return values
-
◆ getLogger()
Mustache_Cache_AbstractCache::getLogger |
( |
| ) |
|
|
inherited |
Get the current logger instance.
- Return values
-
Mustache_Logger|Psr\Log\LoggerInterface | |
◆ load()
Mustache_Cache_FilesystemCache::load |
( |
| $key | ) |
|
Load the class from cache using require_once
.
- Parameters
-
- Return values
-
Implements Mustache_Cache.
◆ log()
Mustache_Cache_AbstractCache::log |
( |
| $level, |
|
|
| $message, |
|
|
array | $context = array() ) |
|
protectedinherited |
Add a log record if logging is enabled.
- Parameters
-
string | $level | The logging level |
string | $message | The log message |
array | $context | The log context |
◆ setLogger()
Mustache_Cache_AbstractCache::setLogger |
( |
| $logger = null | ) |
|
|
inherited |
The documentation for this class was generated from the following file:
- lib/mustache/src/Mustache/Cache/FilesystemCache.php