MediaWiki  master
Parser\ParserCacheFactory Class Reference
Collaboration diagram for 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. More...
 
 getRevisionOutputCache (string $name)
 Get a RevisionOutputCache instance by $name. More...
 

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()

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()

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()

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 Parser\ParserCacheFactory::$hookContainer
private

Definition at line 52 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $jsonCodec

JsonCodec Parser\ParserCacheFactory::$jsonCodec
private

Definition at line 55 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $logger

LoggerInterface Parser\ParserCacheFactory::$logger
private

Definition at line 61 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $options

ServiceOptions Parser\ParserCacheFactory::$options
private

Definition at line 76 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $parserCacheBackend

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

Definition at line 46 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $parserCaches

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

Definition at line 70 of file ParserCacheFactory.php.

◆ $revisionOutputCacheBackend

WANObjectCache Parser\ParserCacheFactory::$revisionOutputCacheBackend
private

Definition at line 49 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $revisionOutputCaches

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

Definition at line 73 of file ParserCacheFactory.php.

◆ $stats

IBufferingStatsdDataFactory Parser\ParserCacheFactory::$stats
private

Definition at line 58 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $titleFactory

TitleFactory Parser\ParserCacheFactory::$titleFactory
private

Definition at line 64 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ $wikiPageFactory

WikiPageFactory Parser\ParserCacheFactory::$wikiPageFactory
private

Definition at line 67 of file ParserCacheFactory.php.

Referenced by Parser\ParserCacheFactory\__construct().

◆ CONSTRUCTOR_OPTIONS

const 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: