手册:$wgMemc
Appearance
此功能已在版本1.36.0被完全移除。 |
| 全域对象: $wgMemc | |
|---|---|
| The global variable used to access the main cache. | |
| 于此版本弃用: | 1.35.0 |
| 于此版本移除: | 1.36.0 |
| 类: | ObjectCache |
| 位于: | ObjectCache.php |
$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.