Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Mustache_Cache Interface Reference
Inheritance diagram for Mustache_Cache:
Mustache_Cache_AbstractCache Mustache_Cache_FilesystemCache Mustache_Cache_NoopCache

Public Member Functions

 cache ($key, $value)
 Cache and load a compiled Mustache_Template class.
 
 load ($key)
 Load a compiled Mustache_Template class from cache.
 
 setLogger ($logger=null)
 Set a logger instance.
 

Member Function Documentation

◆ cache()

Mustache_Cache::cache ( $key,
$value )

Cache and load a compiled Mustache_Template class.

Parameters
string$key
string$value

Implemented in Mustache_Cache_FilesystemCache, and Mustache_Cache_NoopCache.

◆ load()

Mustache_Cache::load ( $key)

Load a compiled Mustache_Template class from cache.

Parameters
string$key
Return values
boolindicates successfully class load

Implemented in Mustache_Cache_FilesystemCache, and Mustache_Cache_NoopCache.

◆ setLogger()

Mustache_Cache::setLogger ( $logger = null)

Set a logger instance.

Parameters
Mustache_Logger | Psr\Log\LoggerInterface$logger

Implemented in Mustache_Cache_AbstractCache.


The documentation for this interface was generated from the following file: