Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SMW\SQLStore\EntityStore\IdCacheManager Class Reference

Public Member Functions

 __construct (array $caches)
 
 get ( $key)
 
 hasCache ( $hash)
 
 setCache ( $title, $namespace, $interwiki, $subobject, $id, $sortkey)
 
 deleteCache ( $title, $namespace, $interwiki, $subobject)
 
 deleteCacheById ( $id)
 
 getId ( $args)
 
 getSort ( $args)
 

Static Public Member Functions

static computeSha1 ( $args='')
 

Public Attributes

const REDIRECT_SOURCE = 'redirect.source.lookup'
 
const REDIRECT_TARGET = 'redirect.target.lookup'
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\EntityStore\IdCacheManager::__construct ( array  $caches)
Since
3.0
Parameters
array$caches

Member Function Documentation

◆ computeSha1()

static SMW\SQLStore\EntityStore\IdCacheManager::computeSha1 (   $args = '')
static
Since
3.0
Parameters
string | array$args
Returns
string

◆ deleteCache()

SMW\SQLStore\EntityStore\IdCacheManager::deleteCache (   $title,
  $namespace,
  $interwiki,
  $subobject 
)
Since
3.0
Parameters
string$title
integer$namespace
string$interwiki
string$subobject

◆ deleteCacheById()

SMW\SQLStore\EntityStore\IdCacheManager::deleteCacheById (   $id)
Since
3.0
Parameters
string$id

◆ get()

SMW\SQLStore\EntityStore\IdCacheManager::get (   $key)
Since
3.0
Parameters
string$key
Returns
boolean

◆ getId()

SMW\SQLStore\EntityStore\IdCacheManager::getId (   $args)

Get a cached SMW ID, or false if no cache entry is found.

Since
3.0
Parameters
DIWikiPage | array$args
Returns
integer|boolean

◆ getSort()

SMW\SQLStore\EntityStore\IdCacheManager::getSort (   $args)

Get a cached SMW sortkey, or false if no cache entry is found.

Since
3.0
Parameters
string$title
integer$namespace
string$interwiki
string$subobject
Returns
string|boolean

◆ hasCache()

SMW\SQLStore\EntityStore\IdCacheManager::hasCache (   $hash)
Since
3.0
Parameters
string$hash
Returns
boolean

◆ setCache()

SMW\SQLStore\EntityStore\IdCacheManager::setCache (   $title,
  $namespace,
  $interwiki,
  $subobject,
  $id,
  $sortkey 
)
Since
3.0
Parameters
string$title
integer$namespace
string$interwiki
string$subobject
integer$id
string$sortkey

Member Data Documentation

◆ REDIRECT_SOURCE

const SMW\SQLStore\EntityStore\IdCacheManager::REDIRECT_SOURCE = 'redirect.source.lookup'

Caching redirects, especially from prefetch


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

About | General disclaimer | Privacy policy