Manual:$wgMemc

From mediawiki.org
Jump to navigation Jump to search

$wgMemc is the global variable used to access the main cache. It is set in Setup.php :

$wgMemc = ObjectCache::getLocalClusterInstance();

wfGetMainCache()[edit]

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.

See also[edit]