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.
author | Andrew Tch andrew@noop.lv |
---|---|
package | Default |
generateKey(string $name,string $className): string
string
The template name
string
The template class name
string
getTimestamp(string $key): integer
string
The cache key
integer
load(string $key)
string
The cache key
write(string $key,string $content)
string
The cache key
string
The template representation as a PHP class