Class CachingPropertyInfoLookup is an implementation of PropertyInfoLookup that maintains a cached copy of the property info.
More...
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.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Lib\Store\CachingPropertyInfoLookup::__construct |
( |
PropertyInfoLookup |
$lookup, |
|
|
|
$cache, |
|
|
|
$cacheKeyGroup, |
|
|
|
$cacheDuration = 3600 |
|
) |
| |
- Parameters
-
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. |
◆ getAllPropertyInfo()
Wikibase\Lib\Store\CachingPropertyInfoLookup::getAllPropertyInfo |
( |
| ) |
|
◆ getFullTableCacheKey()
Wikibase\Lib\Store\CachingPropertyInfoLookup::getFullTableCacheKey |
( |
| ) |
|
|
private |
◆ getPropertyInfo()
Wikibase\Lib\Store\CachingPropertyInfoLookup::getPropertyInfo |
( |
PropertyId |
$propertyId | ) |
|
◆ getPropertyInfoForDataType()
Wikibase\Lib\Store\CachingPropertyInfoLookup::getPropertyInfoForDataType |
( |
|
$dataType | ) |
|
◆ getPropertyInfoFromCache()
Wikibase\Lib\Store\CachingPropertyInfoLookup::getPropertyInfoFromCache |
( |
PropertyId |
$propertyId | ) |
|
|
private |
- Parameters
-
- Returns
- array|null
◆ getSinglePropertyCacheKey()
Wikibase\Lib\Store\CachingPropertyInfoLookup::getSinglePropertyCacheKey |
( |
PropertyId |
$propertyId | ) |
|
|
private |
◆ $cache
Wikibase\Lib\Store\CachingPropertyInfoLookup::$cache |
|
protected |
◆ $cacheDuration
Wikibase\Lib\Store\CachingPropertyInfoLookup::$cacheDuration |
|
protected |
◆ $cacheKeyGroup
Wikibase\Lib\Store\CachingPropertyInfoLookup::$cacheKeyGroup |
|
protected |
◆ $logger
Wikibase\Lib\Store\CachingPropertyInfoLookup::$logger |
|
private |
◆ $lookup
Wikibase\Lib\Store\CachingPropertyInfoLookup::$lookup |
|
protected |
◆ $propertyInfo
Wikibase\Lib\Store\CachingPropertyInfoLookup::$propertyInfo = [] |
|
protected |
◆ $propertyInfoFullyPopulated
Wikibase\Lib\Store\CachingPropertyInfoLookup::$propertyInfoFullyPopulated = false |
|
protected |
◆ SINGLE_PROPERTY_CACHE_KEY_SEPARATOR
const Wikibase\Lib\Store\CachingPropertyInfoLookup::SINGLE_PROPERTY_CACHE_KEY_SEPARATOR = ':' |
|
private |
The documentation for this class was generated from the following file: