Wikibase
MediaWiki Wikibase extension
|
Implementation of PropertyInfoStore wrapping the instance modifying the local PropertyInfoStore and adjusting the property info cache accordingly. More...
Public Member Functions | |
__construct (PropertyInfoStore $store, WANObjectCache $cache, $cacheDuration=3600, $cacheKeyGroup='') | |
setPropertyInfo (PropertyId $propertyId, array $info) | |
removePropertyInfo (PropertyId $propertyId) | |
Public Attributes | |
const | SINGLE_PROPERTY_CACHE_KEY_SEPARATOR = ':' |
const | CACHE_CLASS = 'CacheAwarePropertyInfoStore' |
Public Attributes inherited from Wikibase\Lib\Store\PropertyInfoStore | |
const | KEY_CANONICAL_URI = 'canonicalURI' |
Key to use in the info array for the property's canonical URI pattern. | |
Protected Attributes | |
$innerStore | |
$cache | |
$cacheDuration | |
$cacheKeyGroup | |
Private Member Functions | |
getFullTableCacheKey () | |
getSinglePropertyCacheKey (PropertyId $propertyId) | |
deleteFullTableCacheKey () | |
deleteCacheKeyForProperty (PropertyId $propertyId) | |
Private Attributes | |
$logger | |
Implementation of PropertyInfoStore wrapping the instance modifying the local PropertyInfoStore and adjusting the property info cache accordingly.
Note: In-process cache (e.g. held by CachingPropertyInfoLookup instances) is NOT updated when changes are done by the store. Note: Cache keys used by this class should be in sync with keys used by CachingPropertyInfoLookup instances.
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::__construct | ( | PropertyInfoStore | $store, |
WANObjectCache | $cache, | ||
$cacheDuration = 3600 , |
|||
$cacheKeyGroup = '' |
|||
) |
PropertyInfoStore | $store | The info store to call back to. |
WANObjectCache | $cache | |
int | $cacheDuration | Number of seconds to keep the cached version for. Defaults to 3600 seconds = 1 hour. |
string | $cacheKeyGroup | Group name of the Wikibases to be used when generating global cache keys |
|
private |
|
private |
|
private |
|
private |
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::removePropertyInfo | ( | PropertyId | $propertyId | ) |
PropertyId | $propertyId |
Implements Wikibase\Lib\Store\PropertyInfoStore.
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::setPropertyInfo | ( | PropertyId | $propertyId, |
array | $info | ||
) |
PropertyId | $propertyId | |
array | $info |
InvalidArgumentException |
Implements Wikibase\Lib\Store\PropertyInfoStore.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
const Wikibase\Lib\Store\CacheAwarePropertyInfoStore::CACHE_CLASS = 'CacheAwarePropertyInfoStore' |
const Wikibase\Lib\Store\CacheAwarePropertyInfoStore::SINGLE_PROPERTY_CACHE_KEY_SEPARATOR = ':' |