Wikibase
MediaWiki Wikibase extension
|
TermFallbackCacheFacade is class to allow for simplified interaction with the shared cache used for storing TermFallback objects (also known as the term fallback cache or formatter cache). More...
Public Member Functions | |
__construct (CacheInterface $cache, int $cacheTtlInSeconds) | |
get (EntityId $targetEntityId, int $revisionId, string $languageCode, string $termType) | |
set (?TermFallback $termFallback, EntityId $targetEntityId, int $revisionId, string $languageCode, string $termType) | |
Public Attributes | |
const | NO_VALUE = false |
Private Attributes | |
$cache | |
$cacheTtlInSeconds | |
TermFallbackCacheFacade is class to allow for simplified interaction with the shared cache used for storing TermFallback objects (also known as the term fallback cache or formatter cache).
The cache returns TermFallbackCacheFacade::NO_VALUE in the case there is no entry in the cache.
Storing null values is also allowed as this indicates we have already checked the database for the term but found nothing.
Wikibase\Lib\TermFallbackCache\TermFallbackCacheFacade::__construct | ( | CacheInterface | $cache, |
int | $cacheTtlInSeconds ) |
Wikibase\Lib\TermFallbackCache\TermFallbackCacheFacade::get | ( | EntityId | $targetEntityId, |
int | $revisionId, | ||
string | $languageCode, | ||
string | $termType ) |
EntityId | $targetEntityId | |
int | $revisionId | |
string | $languageCode | |
string | $termType |
Wikibase\Lib\TermFallbackCache\TermFallbackCacheFacade::set | ( | ?TermFallback | $termFallback, |
EntityId | $targetEntityId, | ||
int | $revisionId, | ||
string | $languageCode, | ||
string | $termType ) |
null | TermFallback | $termFallback | |
EntityId | $targetEntityId | |
int | $revisionId | |
string | $languageCode | |
string | $termType |
|
private |
|
private |
const Wikibase\Lib\TermFallbackCache\TermFallbackCacheFacade::NO_VALUE = false |