MediaWiki  REL1_19
ObjectCache Class Reference

List of all members.

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()

Detailed Description

Definition at line 8 of file ObjectCache.php.


Member Function Documentation

static ObjectCache::clear ( ) [static]

Clear all the cached instances.

Definition at line 31 of file ObjectCache.php.

Referenced by ForkController\prepareEnvironment().

Here is the caller graph for this function:

static ObjectCache::getInstance ( id) [static]

Get a cached instance of the specified type of cache object.

Parameters:
$id
Returns:
object

Definition at line 18 of file ObjectCache.php.

References newFromId().

Referenced by newAnything(), wfGetCache(), wfGetMainCache(), wfGetMessageCacheStorage(), and wfGetParserCacheStorage().

Here is the call graph for this function:

Here is the caller graph for this function:

static ObjectCache::newAccelerator ( params) [static]

Factory function referenced from DefaultSettings.php for CACHE_ACCEL.

Returns:
ObjectCache

Definition at line 91 of file ObjectCache.php.

References newFromId(), and wfIniGetBool().

Here is the call graph for this function:

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().

Here is the call graph for this function:

static ObjectCache::newFromId ( id) [static]

Create a new cache object of the specified type.

Parameters:
$id
Returns:
ObjectCache

Definition at line 42 of file ObjectCache.php.

References $wgObjectCaches, and newFromParams().

Referenced by getInstance(), and newAccelerator().

Here is the call graph for this function:

Here is the caller graph for this function:

static ObjectCache::newFromParams ( params) [static]

Create a new cache object from parameters.

Parameters:
$paramsarray
Returns:
ObjectCache

Definition at line 60 of file ObjectCache.php.

Referenced by MultiWriteBagOStuff\__construct(), and newFromId().

Here is the caller graph for this function:

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.

Parameters:
$paramsarray
Returns:
MemcachedPhpBagOStuff

Definition at line 114 of file ObjectCache.php.


Member Data Documentation

ObjectCache::$instances = array() [static]

Definition at line 9 of file ObjectCache.php.

Referenced by MediaWikiTestCase\run(), and ParserTest\setupDatabase().


The documentation for this class was generated from the following file: