\Twig_Cache_Null

Implements a no-cache strategy.

Summary

Methods
Properties
Constants
generateKey()
write()
load()
getTimestamp()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

generateKey()

generateKey(string  $name, string  $className) : string

Generates a cache key for the given template class name.

Parameters

string $name

The template name

string $className

The template class name

Returns

string

write()

write(string  $key, string  $content) 

Writes the compiled template to cache.

Parameters

string $key

The cache key

string $content

The template representation as a PHP class

load()

load(string  $key) 

Loads a template from the cache.

Parameters

string $key

The cache key

getTimestamp()

getTimestamp(string  $key) : integer

Returns the modification timestamp of a key.

Parameters

string $key

The cache key

Returns

integer