MediaWiki REL1_37
MediaWiki\Parser\ParserCacheFactory Class Reference
Collaboration diagram for MediaWiki\Parser\ParserCacheFactory:

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.
 
 getRevisionOutputCache (string $name)
 Get a RevisionOutputCache instance by $name.
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Private Attributes

HookContainer $hookContainer
 
JsonCodec $jsonCodec
 
LoggerInterface $logger
 
ServiceOptions $options
 
BagOStuff $parserCacheBackend
 
ParserCache[] $parserCaches = []
 
WANObjectCache $revisionOutputCacheBackend
 
RevisionOutputCache[] $revisionOutputCaches = []
 
IBufferingStatsdDataFactory $stats
 
TitleFactory $titleFactory
 
WikiPageFactory $wikiPageFactory
 

Detailed Description

Definition at line 40 of file ParserCacheFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getParserCache()

MediaWiki\Parser\ParserCacheFactory::getParserCache ( string  $name)

Get a ParserCache instance by $name.

Parameters
string$name
Returns
ParserCache

Definition at line 127 of file ParserCacheFactory.php.

References $cache.

Referenced by MediaWiki\Rest\Handler\PageHTMLHandler\__construct(), and MediaWiki\Rest\Handler\RevisionHTMLHandler\__construct().

◆ getRevisionOutputCache()

MediaWiki\Parser\ParserCacheFactory::getRevisionOutputCache ( string  $name)

Get a RevisionOutputCache instance by $name.

Parameters
string$name
Returns
RevisionOutputCache

Definition at line 153 of file ParserCacheFactory.php.

References $cache.

Referenced by MediaWiki\Rest\Handler\PageHTMLHandler\__construct(), and MediaWiki\Rest\Handler\RevisionHTMLHandler\__construct().

Member Data Documentation

◆ $hookContainer

HookContainer MediaWiki\Parser\ParserCacheFactory::$hookContainer
private

◆ $jsonCodec

JsonCodec MediaWiki\Parser\ParserCacheFactory::$jsonCodec
private

◆ $logger

LoggerInterface MediaWiki\Parser\ParserCacheFactory::$logger
private

◆ $options

ServiceOptions MediaWiki\Parser\ParserCacheFactory::$options
private

◆ $parserCacheBackend

BagOStuff MediaWiki\Parser\ParserCacheFactory::$parserCacheBackend
private
Initial value:
=
public const DEFAULT_NAME 'pcache'

Definition at line 46 of file ParserCacheFactory.php.

Referenced by MediaWiki\Parser\ParserCacheFactory\__construct().

◆ $parserCaches

ParserCache [] MediaWiki\Parser\ParserCacheFactory::$parserCaches = []
private

Definition at line 70 of file ParserCacheFactory.php.

◆ $revisionOutputCacheBackend

WANObjectCache MediaWiki\Parser\ParserCacheFactory::$revisionOutputCacheBackend
private

◆ $revisionOutputCaches

RevisionOutputCache [] MediaWiki\Parser\ParserCacheFactory::$revisionOutputCaches = []
private

Definition at line 73 of file ParserCacheFactory.php.

◆ $stats

IBufferingStatsdDataFactory MediaWiki\Parser\ParserCacheFactory::$stats
private

◆ $titleFactory

TitleFactory MediaWiki\Parser\ParserCacheFactory::$titleFactory
private

◆ $wikiPageFactory

WikiPageFactory MediaWiki\Parser\ParserCacheFactory::$wikiPageFactory
private

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Parser\ParserCacheFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
'ParserCacheUseJson',
'CacheEpoch',
'OldRevisionParserCacheExpireTime',
]
Access: internal

Definition at line 81 of file ParserCacheFactory.php.


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