MediaWiki  master
Parser\ParserCacheFactory Class Reference

Public Member Functions

 __construct (BagOStuff $parserCacheBackend, WANObjectCache $revisionOutputCacheBackend, HookContainer $hookContainer, JsonCodec $jsonCodec, IBufferingStatsdDataFactory $stats, LoggerInterface $logger, ServiceOptions $options, TitleFactory $titleFactory, WikiPageFactory $wikiPageFactory)
 
 getParserCache (string $name)
 Get a ParserCache instance by $name. More...
 
 getRevisionOutputCache (string $name)
 Get a RevisionOutputCache instance by $name. More...
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Detailed Description

Definition at line 41 of file ParserCacheFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Parser\ParserCacheFactory::__construct ( BagOStuff  $parserCacheBackend,
WANObjectCache  $revisionOutputCacheBackend,
HookContainer  $hookContainer,
JsonCodec  $jsonCodec,
IBufferingStatsdDataFactory  $stats,
LoggerInterface  $logger,
ServiceOptions  $options,
TitleFactory  $titleFactory,
WikiPageFactory  $wikiPageFactory 
)
Parameters
BagOStuff$parserCacheBackend
WANObjectCache$revisionOutputCacheBackend
HookContainer$hookContainer
JsonCodec$jsonCodec
IBufferingStatsdDataFactory$stats
LoggerInterface$logger
ServiceOptions$options
TitleFactory$titleFactory
WikiPageFactory$wikiPageFactory

Definition at line 101 of file ParserCacheFactory.php.

Member Function Documentation

◆ getParserCache()

Parser\ParserCacheFactory::getParserCache ( string  $name)

Get a ParserCache instance by $name.

Parameters
string$name
Returns
ParserCache

Definition at line 130 of file ParserCacheFactory.php.

References MediaWiki\MainConfigNames\CacheEpoch.

Referenced by Parser\Parsoid\ParsoidOutputAccess\__construct().

◆ getRevisionOutputCache()

Parser\ParserCacheFactory::getRevisionOutputCache ( string  $name)

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const Parser\ParserCacheFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const OldRevisionParserCacheExpireTime
Name constant for the OldRevisionParserCacheExpireTime setting, for use with Config::get()
const CacheEpoch
Name constant for the CacheEpoch setting, for use with Config::get()
Access: internal

Definition at line 85 of file ParserCacheFactory.php.


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