- $cache = ObjectCache::newAccelerator( CACHE_NONE );
- $key = wfMemcKey( 'languageconverter', 'namespace-text', $index, $variant );
+ $cache = MediaWikiServices::getInstance()->getLocalServerObjectCache();
+ $key = $cache->makeKey( 'languageconverter', 'namespace-text', $index, $variant );