Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SMW\CacheFactory Class Reference

Public Member Functions

 __construct ( $mainCacheType=null)
 
 getMainCacheType ()
 
 newCacheOptions (array $cacheOptions)
 
 newFixedInMemoryCache ( $cacheSize=500)
 
 newNullCache ()
 
 newMediaWikiCompositeCache ( $mediaWikiCacheType=null)
 
 newMediaWikiCache ( $mediaWikiCacheType=null)
 
 newCacheByType ( $cacheType=null)
 
 newBlobStore ( $namespace, $cacheType=null, $cacheLifetime=0)
 

Static Public Member Functions

static getCachePrefix ()
 
static getPurgeCacheKey ( $key)
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\CacheFactory::__construct (   $mainCacheType = null)
Since
2.2
Parameters
string | integer | null$mainCacheType

Member Function Documentation

◆ getCachePrefix()

static SMW\CacheFactory::getCachePrefix ( )
static
Since
2.2
Returns
string

◆ getMainCacheType()

SMW\CacheFactory::getMainCacheType ( )
Since
2.2
Returns
string|integer

◆ getPurgeCacheKey()

static SMW\CacheFactory::getPurgeCacheKey (   $key)
static
Since
2.2
Parameters
Title | integer | string$key
Returns
string

◆ newBlobStore()

SMW\CacheFactory::newBlobStore (   $namespace,
  $cacheType = null,
  $cacheLifetime = 0 
)
Since
2.4
Parameters
string$namespace
string | integer | null$cacheType
integer$cacheLifetime
Returns
BlobStore

◆ newCacheByType()

SMW\CacheFactory::newCacheByType (   $cacheType = null)
Since
2.5
Parameters
integer | null$cacheType
Returns
Cache

◆ newCacheOptions()

SMW\CacheFactory::newCacheOptions ( array  $cacheOptions)
Since
2.2
Parameters
array$cacheOptions
Returns
object
Exceptions
RuntimeException

◆ newFixedInMemoryCache()

SMW\CacheFactory::newFixedInMemoryCache (   $cacheSize = 500)
Since
2.2
Parameters
integer$cacheSize
Returns
Cache

◆ newMediaWikiCache()

SMW\CacheFactory::newMediaWikiCache (   $mediaWikiCacheType = null)
Since
2.5
Parameters
integer | string$mediaWikiCacheType
Returns
Cache

◆ newMediaWikiCompositeCache()

SMW\CacheFactory::newMediaWikiCompositeCache (   $mediaWikiCacheType = null)
Since
2.2
Parameters
integer | string$mediaWikiCacheType
Returns
Cache

◆ newNullCache()

SMW\CacheFactory::newNullCache ( )
Since
2.2
Returns
Cache

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

About | General disclaimer | Privacy policy