11use Wikimedia\Parsoid\Core\LinkTarget;
37 private function __construct() {
38 throw new LogicException(
'May not be instantiated' );
57 $prefix =
'ns' . $page->getNamespace();
60 $prefix .=
'@id@' . $page->getWikiId();
62 $prefix .=
'@iw@' . $page->getInterwiki();
65 return $prefix .
':' . $page->getDBkey();
70class_alias( CacheKeyHelper::class,
'MediaWiki\Cache\CacheKeyHelper' );
Helper class for mapping page value objects to a string key.
static getKeyForPage( $page)
Returns a stable key for identifying the given page in a cache.