Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (CacheFactory $cacheFactory) | |
resetPoolCacheById ( $poolCacheName='') | |
getStats ( $format=null) | |
getPoolCacheFor ( $poolCacheName, $cacheSize=500) | |
getPoolCacheById ( $poolCacheId, $cacheSize=500) | |
Static Public Member Functions | |
static | getInstance () |
static | clear () |
Public Attributes | |
const | FORMAT_PLAIN = StatsFormatter::FORMAT_PLAIN |
const | FORMAT_JSON = StatsFormatter::FORMAT_JSON |
const | FORMAT_HTML = StatsFormatter::FORMAT_HTML |
A multipurpose non-persistent static pool cache to keep selected items for the duration of a request cacheable.
GNU GPL v2+
SMW\InMemoryPoolCache::__construct | ( | CacheFactory | $cacheFactory | ) |
CacheFactory | $cacheFactory |
|
static |
|
static |
SMW\InMemoryPoolCache::getPoolCacheById | ( | $poolCacheId, | |
$cacheSize = 500 |
|||
) |
string | $poolCacheId | |
integer | $cacheSize |
SMW\InMemoryPoolCache::getPoolCacheFor | ( | $poolCacheName, | |
$cacheSize = 500 |
|||
) |
string | $poolCacheName | |
integer | $cacheSize |
SMW\InMemoryPoolCache::getStats | ( | $format = null | ) |
string | null | $format |
SMW\InMemoryPoolCache::resetPoolCacheById | ( | $poolCacheName = '' | ) |
string | $poolCacheName |
const SMW\InMemoryPoolCache::FORMAT_HTML = StatsFormatter::FORMAT_HTML |
Stats as HTML list output
const SMW\InMemoryPoolCache::FORMAT_JSON = StatsFormatter::FORMAT_JSON |
Stats as JSON output
const SMW\InMemoryPoolCache::FORMAT_PLAIN = StatsFormatter::FORMAT_PLAIN |
Stats as plain string