MediaWiki REL1_40
MediaWiki\Cache\BacklinkCacheFactory Class Reference

Public Member Functions

 __construct (WANObjectCache $wanCache, HookContainer $hookContainer)
 
 getBacklinkCache (PageReference $page)
 Returns a BacklinkCache for $page.
 

Detailed Description

Since
1.37

Definition at line 34 of file BacklinkCacheFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Cache\BacklinkCacheFactory::__construct ( WANObjectCache $wanCache,
HookContainer $hookContainer )
Parameters
WANObjectCache$wanCache
HookContainer$hookContainer

Definition at line 48 of file BacklinkCacheFactory.php.

Member Function Documentation

◆ getBacklinkCache()

MediaWiki\Cache\BacklinkCacheFactory::getBacklinkCache ( PageReference $page)

Returns a BacklinkCache for $page.

May re-use previously created instances.

Currently, only one cache instance can exist; callers that need multiple backlink cache objects should keep them in scope.

Parameters
PageReference$pagePage to get a backlink cache for
Returns
BacklinkCache

Definition at line 66 of file BacklinkCacheFactory.php.


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