|
MediaWiki
REL1_19
|
Static Public Member Functions | |
| static | clear () |
| Clear all the cached instances. | |
| static | getInstance ($id) |
| Get a cached instance of the specified type of cache object. | |
| static | newAccelerator ($params) |
| Factory function referenced from DefaultSettings.php for CACHE_ACCEL. | |
| static | newAnything ($params) |
| Factory function referenced from DefaultSettings.php for CACHE_ANYTHING. | |
| static | newFromId ($id) |
| Create a new cache object of the specified type. | |
| static | newFromParams ($params) |
| Create a new cache object from parameters. | |
| static | newMemcached ($params) |
| Factory function that creates a memcached client object. | |
Static Public Attributes | |
| static | $instances = array() |
Definition at line 8 of file ObjectCache.php.
| static ObjectCache::clear | ( | ) | [static] |
Clear all the cached instances.
Definition at line 31 of file ObjectCache.php.
Referenced by ForkController\prepareEnvironment().

| static ObjectCache::getInstance | ( | $ | id | ) | [static] |
Get a cached instance of the specified type of cache object.
| $id |
Definition at line 18 of file ObjectCache.php.
References newFromId().
Referenced by newAnything(), wfGetCache(), wfGetMainCache(), wfGetMessageCacheStorage(), and wfGetParserCacheStorage().


| static ObjectCache::newAccelerator | ( | $ | params | ) | [static] |
Factory function referenced from DefaultSettings.php for CACHE_ACCEL.
Definition at line 91 of file ObjectCache.php.
References newFromId(), and wfIniGetBool().

| static ObjectCache::newAnything | ( | $ | params | ) | [static] |
Factory function referenced from DefaultSettings.php for CACHE_ANYTHING.
Definition at line 75 of file ObjectCache.php.
References $wgMainCacheType, $wgMessageCacheType, $wgParserCacheType, and getInstance().

| static ObjectCache::newFromId | ( | $ | id | ) | [static] |
Create a new cache object of the specified type.
| $id |
Definition at line 42 of file ObjectCache.php.
References $wgObjectCaches, and newFromParams().
Referenced by getInstance(), and newAccelerator().


| static ObjectCache::newFromParams | ( | $ | params | ) | [static] |
Create a new cache object from parameters.
| $params | array |
Definition at line 60 of file ObjectCache.php.
Referenced by MultiWriteBagOStuff\__construct(), and newFromId().

| static ObjectCache::newMemcached | ( | $ | params | ) | [static] |
Factory function that creates a memcached client object.
The idea of this is that it might eventually detect and automatically support the PECL extension, assuming someone can get it to compile.
| $params | array |
Definition at line 114 of file ObjectCache.php.
ObjectCache::$instances = array() [static] |
Definition at line 9 of file ObjectCache.php.
Referenced by MediaWikiTestCase\run(), and ParserTest\setupDatabase().