Wikibase
MediaWiki Wikibase extension
|
Determines which requested terms are not cached, then fetches and caches them. More...
Public Member Functions | |
__construct (PrefetchingTermLookup $lookup, RedirectResolvingLatestRevisionLookup $redirectResolvingRevisionLookup, ?int $ttl=null) | |
prefetchUncached (CacheInterface $cache, array $entityIds, array $termTypes, array $languageCodes) | |
Private Member Functions | |
getUncachedLanguagesForEntityTerms (CacheInterface $cache, EntityId $id, array $termTypes, array $languages) | |
getCacheKey (EntityId $id, string $language, string $termType) | |
getPrefetchedTermsFromLookup (array $entitiesToPrefetch, array $languagesToPrefetch, array $termTypes) | |
getTermFromLookup (EntityId $entity, string $termType, string $language) | |
Private Attributes | |
const | DEFAULT_TTL = 60 |
$lookup | |
$redirectResolvingRevisionLookup | |
$cacheEntryTTL | |
Determines which requested terms are not cached, then fetches and caches them.
Wikibase\Lib\Store\UncachedTermsPrefetcher::__construct | ( | PrefetchingTermLookup | $lookup, |
RedirectResolvingLatestRevisionLookup | $redirectResolvingRevisionLookup, | ||
?int | $ttl = null |
||
) |
|
private |
|
private |
|
private |
|
private |
Wikibase\Lib\Store\UncachedTermsPrefetcher::prefetchUncached | ( | CacheInterface | $cache, |
array | $entityIds, | ||
array | $termTypes, | ||
array | $languageCodes | ||
) |
|
private |
|
private |
|
private |
|
private |