Wikibase
MediaWiki Wikibase extension
|
Class CachingPropertyInfoLookup is an implementation of PropertyInfoLookup that maintains a cached copy of the property info. More...
Public Member Functions | |
__construct (PropertyInfoLookup $lookup, $cache, $cacheKeyGroup, $cacheDuration=3600) | |
getPropertyInfo (PropertyId $propertyId) | |
getPropertyInfoForDataType ( $dataType) | |
getAllPropertyInfo () | |
Public Attributes | |
const | SINGLE_PROPERTY_CACHE_KEY_SEPARATOR = ':' |
Public Attributes inherited from Wikibase\Lib\Store\PropertyInfoLookup | |
const | KEY_DATA_TYPE = 'type' |
Key to use in the info array for the property's data type ID. | |
const | KEY_FORMATTER_URL = 'formatterURL' |
Key to use in the info array for the property's formatter URL. | |
Protected Attributes | |
$lookup | |
$cache | |
$cacheDuration | |
$cacheKeyGroup | |
$propertyInfo = [] | |
$propertyInfoFullyPopulated = false | |
Private Member Functions | |
getPropertyInfoFromCache (PropertyId $propertyId) | |
getFullTableCacheKey () | |
getSinglePropertyCacheKey (PropertyId $propertyId) | |
Private Attributes | |
$logger | |
Class CachingPropertyInfoLookup is an implementation of PropertyInfoLookup that maintains a cached copy of the property info.
Note: Cache keys used by this class should be in sync with keys used by CacheAwarePropertyInfoStore instance.
Wikibase\Lib\Store\CachingPropertyInfoLookup::__construct | ( | PropertyInfoLookup | $lookup, |
$cache, | |||
$cacheKeyGroup, | |||
$cacheDuration = 3600 |
|||
) |
PropertyInfoLookup | $lookup | The info lookup to call back to. |
BagOStuff | WANObjectCache | $cache | |
string | $cacheKeyGroup | Group name of the Wikibases to be used when generating global cache keys |
int | $cacheDuration | Number of seconds to keep the cached version for. Defaults to 3600 seconds = 1 hour. |
Wikibase\Lib\Store\CachingPropertyInfoLookup::getAllPropertyInfo | ( | ) |
Implements Wikibase\Lib\Store\PropertyInfoLookup.
|
private |
Wikibase\Lib\Store\CachingPropertyInfoLookup::getPropertyInfo | ( | PropertyId | $propertyId | ) |
PropertyId | $propertyId |
Implements Wikibase\Lib\Store\PropertyInfoLookup.
Wikibase\Lib\Store\CachingPropertyInfoLookup::getPropertyInfoForDataType | ( | $dataType | ) |
string | $dataType |
Implements Wikibase\Lib\Store\PropertyInfoLookup.
|
private |
PropertyId | $propertyId |
|
private |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
const Wikibase\Lib\Store\CachingPropertyInfoLookup::SINGLE_PROPERTY_CACHE_KEY_SEPARATOR = ':' |