MediaWiki REL1_37
MediaWiki\Cache\BacklinkCacheFactory Class Reference
Collaboration diagram for MediaWiki\Cache\BacklinkCacheFactory:

Public Member Functions

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

Private Attributes

BacklinkCache $latestBacklinkCache
 
WANObjectCache $wanCache
 

Detailed Description

Since
1.37

Definition at line 33 of file BacklinkCacheFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 43 of file BacklinkCacheFactory.php.

References MediaWiki\Cache\BacklinkCacheFactory\$wanCache.

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 57 of file BacklinkCacheFactory.php.

Member Data Documentation

◆ $latestBacklinkCache

BacklinkCache MediaWiki\Cache\BacklinkCacheFactory::$latestBacklinkCache
private

Definition at line 35 of file BacklinkCacheFactory.php.

◆ $wanCache

WANObjectCache MediaWiki\Cache\BacklinkCacheFactory::$wanCache
private

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