|
MediaWiki master
|

Static Public Member Functions | |
| static | clear () |
| static | getInstance ( $id) |
| Get a cached instance of the specified type of cache object. | |
| static | getLocalClusterInstance () |
| Get the main cluster-local cache object. | |
| static | getLocalServerInstance ( $fallback=CACHE_NONE) |
| static | newAnything () |
| Factory function for CACHE_ANYTHING (referenced by configuration) | |
| static | newFromParams (array $params) |
Static Public Attributes | |
| static BagOStuff[] | $instances = [] |
Definition at line 19 of file ObjectCache.php.
|
static |
Clear all the cached instances.
Definition at line 99 of file ObjectCache.php.
References MediaWiki\MediaWikiServices\getInstance().
|
static |
Get a cached instance of the specified type of cache object.
| string | int | $id | A key in $wgObjectCaches. |
Definition at line 34 of file ObjectCache.php.
References MediaWiki\MediaWikiServices\getInstance().
|
static |
Get the main cluster-local cache object.
Definition at line 89 of file ObjectCache.php.
References MediaWiki\MediaWikiServices\getInstance().
|
static |
| int | string | array | $fallback | Fallback cache or parameter map with 'fallback' |
Definition at line 76 of file ObjectCache.php.
References $fallback, and MediaWiki\MediaWikiServices\getInstance().
|
static |
Factory function for CACHE_ANYTHING (referenced by configuration)
CACHE_ANYTHING means that stuff has to be cached, not caching is not an option. If a caching method is configured for any of the main caches ($wgMainCacheType, $wgMessageCacheType, $wgParserCacheType), then CACHE_ANYTHING will effectively be an alias to the configured cache choice for that. If no cache choice is configured (by default $wgMainCacheType is CACHE_NONE), then CACHE_ANYTHING will forward to CACHE_DB.
Definition at line 65 of file ObjectCache.php.
References CACHE_ANYTHING, and MediaWiki\MediaWikiServices\getInstance().
|
static |
| array | $params |
Definition at line 46 of file ObjectCache.php.
References MediaWiki\MediaWikiServices\getInstance().
|
static |
Definition at line 24 of file ObjectCache.php.