NullCache
in package
implements
CacheInterface
Implements a no-cache strategy.
Tags
Interfaces, Classes and Traits
- CacheInterface
- Interface implemented by cache classes.
Table of Contents
- generateKey() : string
- Generates a cache key for the given template class name.
- getTimestamp() : int
- Returns the modification timestamp of a key.
- load() : mixed
- Loads a template from the cache.
- write() : mixed
- Writes the compiled template to cache.
Methods
generateKey()
Generates a cache key for the given template class name.
public
generateKey(mixed $name, mixed $className) : string
Parameters
- $name : mixed
-
The template name
- $className : mixed
-
The template class name
Return values
string —getTimestamp()
Returns the modification timestamp of a key.
public
getTimestamp(mixed $key) : int
Parameters
- $key : mixed
-
The cache key
Return values
int —load()
Loads a template from the cache.
public
load(mixed $key) : mixed
Parameters
- $key : mixed
-
The cache key
Return values
mixed —write()
Writes the compiled template to cache.
public
write(mixed $key, mixed $content) : mixed
Parameters
- $key : mixed
-
The cache key
- $content : mixed
-
The template representation as a PHP class