MediaWiki master
MediaWiki\Cache\BacklinkCacheFactory Class Reference

Public Member Functions

 __construct (ServiceOptions $options, LinksMigration $linksMigration, WANObjectCache $wanCache, HookContainer $hookContainer, IConnectionProvider $dbProvider)
 getBacklinkCache (PageReference $page)
 Returns a BacklinkCache for $page.

Detailed Description


Definition at line 37 of file BacklinkCacheFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Cache\BacklinkCacheFactory::__construct ( ServiceOptions $options,
LinksMigration $linksMigration,
WANObjectCache $wanCache,
HookContainer $hookContainer,
IConnectionProvider $dbProvider )

Definition at line 51 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.

PageReference$pagePage to get a backlink cache for

Definition at line 75 of file BacklinkCacheFactory.php.

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