|
Jobbuddy
|
Fonctions membres publiques | |
| generateKey (string $name, string $className) | |
| write (string $key, string $content) | |
| load (string $key) | |
| getTimestamp (string $key) | |
Interface implemented by cache classes.
It is highly recommended to always store templates on the filesystem to benefit from the PHP opcode cache. This interface is mostly useful if you need to implement a custom strategy for storing templates on the filesystem.
| generateKey | ( | string | $name, |
| string | $className ) |
Generates a cache key for the given template class name.
Implémenté dans ChainCache, FilesystemCache, et NullCache.
| getTimestamp | ( | string | $key | ) |
Returns the modification timestamp of a key.
Implémenté dans ChainCache, FilesystemCache, et NullCache.
| load | ( | string | $key | ) |
Loads a template from the cache.
Implémenté dans ChainCache, FilesystemCache, et NullCache.
| write | ( | string | $key, |
| string | $content ) |
Writes the compiled template to cache.
| string | $content | The template representation as a PHP class |
Implémenté dans ChainCache, FilesystemCache, NullCache, et ReadOnlyFilesystemCache.