手册:$wgMemc
![]() | This feature was removed completely in version 1.36 (after being deprecated in 1.35.0).
It is recommended you use the WANObjectCache service. However, if you really need the internal object, use ObjectCache::getLocalClusterInstance instead. |
$wgMemc is the global variable used to access the main cache. It is set in Setup.php :
$wgMemc = ObjectCache::getLocalClusterInstance();
wfGetMainCache()
![]() | 这个被弃用功能不应再被使用,但出于向后兼容性的原因仍然可用。 此功能已于1.32版本中弃用。 |
Past global function wfGetMainCache()
defined in Manual:GlobalFunctions.php as follows:
function wfGetMainCache() {
return ObjectCache::getLocalClusterInstance();
}
For documentation of the generic class instance it contains, see BagOStuff.