Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Mustache_Cache_AbstractCache Class Reference
Inheritance diagram for Mustache_Cache_AbstractCache:
Mustache_Cache Mustache_Cache_FilesystemCache Mustache_Cache_NoopCache

Public Member Functions

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

Protected Member Functions

 log ($level, $message, array $context=array())
 Add a log record if logging is enabled.
 

Member Function Documentation

◆ cache()

Mustache_Cache::cache ( $key,
$value )
inherited

Cache and load a compiled Mustache_Template class.

Parameters
string$key
string$value

Implemented in Mustache_Cache_FilesystemCache, and Mustache_Cache_NoopCache.

◆ getLogger()

Mustache_Cache_AbstractCache::getLogger ( )

Get the current logger instance.

Return values
Mustache_Logger|Psr\Log\LoggerInterface

◆ load()

Mustache_Cache::load ( $key)
inherited

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.

◆ log()

Mustache_Cache_AbstractCache::log ( $level,
$message,
array $context = array() )
protected

Add a log record if logging is enabled.

Parameters
string$levelThe logging level
string$messageThe log message
array$contextThe log context

◆ setLogger()

Mustache_Cache_AbstractCache::setLogger ( $logger = null)

Set a logger instance.

Parameters
Mustache_Logger | Psr\Log\LoggerInterface$logger

Implements Mustache_Cache.


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