Manual:$wgMemc

This page is a translated version of the page Manual:$wgMemc and the translation is 22% complete.
警告 警告: 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.

関連項目