- Copyright
- GPL-2.0-or-later
- Note
- The class uses immutable cache approach: cached data never changes once persisted. For this purpose we not only include Item ID in cache key construction, but also Item's current revision ID. Revisions never change, the cached data does not need to change either, which means that we don't need to purge caches. As soon as new revision is created, cache key will change and old cache data will eventually be purged by the caching system (eg. APC, Memcached, ...) based on a Least Recently Used strategy as soon as no code will request it anymore.
◆ __construct()
◆ getDescription()
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::getDescription |
( |
EntityId |
$entityId | ) |
|
◆ getLabel()
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::getLabel |
( |
EntityId |
$entityId | ) |
|
◆ getTerm()
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::getTerm |
( |
EntityId |
$entityId, |
|
|
|
$languageCode, |
|
|
|
$termName = self::LABEL |
|
) |
| |
|
private |
◆ $cache
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$cache |
|
private |
◆ $labelDescriptionLookup
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$labelDescriptionLookup |
|
private |
◆ $redirectResolvingRevisionLookup
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$redirectResolvingRevisionLookup |
|
private |
◆ $termLanguageFallbackChain
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$termLanguageFallbackChain |
|
private |
◆ DESCRIPTION
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::DESCRIPTION = 'description' |
|
private |
◆ LABEL
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::LABEL = 'label' |
|
private |
The documentation for this class was generated from the following file: