|
| getTerm (EntityId $entityId, $languageCode, $termName=self::LABEL) |
|
| serialize (TermFallback $termFallback=null) |
|
| unserialize ( $serialized) |
|
- 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 doesn not need to change as well, what 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, ...) as Least Recently Used as soon as no code will request it.
◆ __construct()
- Parameters
-
CacheInterface | $cache | |
RedirectResolvingLatestRevisionLookup | $redirectResolvingRevisionLookup | |
FallbackLabelDescriptionLookup | $labelDescriptionLookup | |
LanguageFallbackChain | $languageFallbackChain | |
int | $cacheTtlInSeconds | |
◆ 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 |
◆ serialize()
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::serialize |
( |
TermFallback |
$termFallback = null | ) |
|
|
private |
- Parameters
-
TermFallback | null | $termFallback | |
- Returns
- array|null
◆ unserialize()
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::unserialize |
( |
|
$serialized | ) |
|
|
private |
- Parameters
-
- Returns
- null|TermFallback
◆ $cache
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$cache |
|
private |
◆ $cacheTtlInSeconds
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$cacheTtlInSeconds |
|
private |
◆ $labelDescriptionLookup
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$labelDescriptionLookup |
|
private |
◆ $languageFallbackChain
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$languageFallbackChain |
|
private |
◆ $redirectResolvingRevisionLookup
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::$redirectResolvingRevisionLookup |
|
private |
◆ DESCRIPTION
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::DESCRIPTION = 'description' |
|
private |
◆ FIELD_LANGUAGE
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::FIELD_LANGUAGE = 'language' |
◆ FIELD_REQUEST_LANGUAGE
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::FIELD_REQUEST_LANGUAGE = 'requestLanguage' |
◆ FIELD_SOURCE_LANGUAGE
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::FIELD_SOURCE_LANGUAGE = 'sourceLanguage' |
◆ FIELD_VALUE
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::FIELD_VALUE = 'value' |
◆ LABEL
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::LABEL = 'label' |
|
private |
◆ NO_VALUE
const Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::NO_VALUE = 'no value in cache' |
The documentation for this class was generated from the following file: