* and does not rely on global state or the database.
*/
class Title implements LinkTarget {
- /** @var MapCacheLRU */
+ /** @var HashBagOStuff */
static private $titleCache = null;
/**
}
/**
- * @return MapCacheLRU
+ * @return HashBagOStuff
*/
private static function getTitleCache() {
if ( self::$titleCache == null ) {
- self::$titleCache = new MapCacheLRU( self::CACHE_MAX );
+ self::$titleCache = new HashBagOStuff( [ 'maxKeys' => self::CACHE_MAX ] );
}
return self::$titleCache;
}