X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fobjectcache%2FObjectCache.php;h=e49feae881f81ab712d84458a2adf5145531e7e9;hp=8ffe824f79ee874c28bf91745c702e202ee7dc1d;hb=af80076034fb734d652eb043c523c1d8df974e51;hpb=a9a8f6a470f79044eadc02e1ccfe5530ca504498 diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index 8ffe824f79..e49feae881 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -43,11 +43,6 @@ use MediaWiki\MediaWikiServices; * * Primary entry points: * - * - ObjectCache::getMainWANInstance() - * Purpose: Memory cache. - * Stored in the local data-center's main cache (keyspace different from local-cluster cache). - * Delete events are broadcasted to other DCs main cache. See WANObjectCache for details. - * * - ObjectCache::getLocalServerInstance( $fallbackType ) * Purpose: Memory cache for very hot keys. * Stored only on the individual web server (typically APC or APCu for web requests, @@ -60,13 +55,6 @@ use MediaWiki\MediaWikiServices; * Stored centrally within the local data-center. Not replicated to other DCs. * Configured by $wgMainCacheType. * - * - ObjectCache::getMainStashInstance() - * Purpose: Ephemeral global storage. - * Stored centrally within the primary data-center. - * Changes are applied there first and replicated to other DCs (best-effort). - * To retrieve the latest value (e.g. not from a replica DB), use BagOStuff::READ_LATEST. - * This store may be subject to LRU style evictions. - * * - ObjectCache::getInstance( $cacheType ) * Purpose: Special cases (like tiered memory/disk caches). * Get a specific cache type by key in $wgObjectCaches. @@ -319,6 +307,7 @@ class ObjectCache { * @param array $params * @return WANObjectCache * @throws UnexpectedValueException + * @suppress PhanTypeMismatchReturn */ public static function newWANCacheFromParams( array $params ) { global $wgCommandLineMode, $wgSecretKey; @@ -350,30 +339,6 @@ class ObjectCache { return self::getInstance( $wgMainCacheType ); } - /** - * Get the main WAN cache object. - * - * @since 1.26 - * @return WANObjectCache - * @deprecated Since 1.28 Use MediaWikiServices::getInstance()->getMainWANObjectCache() - */ - public static function getMainWANInstance() { - wfDeprecated( __METHOD__, '1.28' ); - return MediaWikiServices::getInstance()->getMainWANObjectCache(); - } - - /** - * Get the cache object for the main stash. - * - * @return BagOStuff - * @since 1.26 - * @deprecated Since 1.28 Use MediaWikiServices::getInstance()->getMainObjectStash() - */ - public static function getMainStashInstance() { - wfDeprecated( __METHOD__, '1.28' ); - return MediaWikiServices::getInstance()->getMainObjectStash(); - } - /** * Clear all the cached instances. */