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, $cache, $cacheDuration=3600, $cacheKeyGroup='') | |
setPropertyInfo (NumericPropertyId $propertyId, array $info) | |
removePropertyInfo (NumericPropertyId $propertyId) | |
Public Attributes | |
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 (NumericPropertyId $propertyId) | |
deleteFullTableCacheKey () | |
deleteCacheKeyForProperty (NumericPropertyId $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, |
$cache, | |||
$cacheDuration = 3600, | |||
$cacheKeyGroup = '' ) |
PropertyInfoStore | $store | The info store to call back to. |
WANObjectCache | BagOStuff | $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 | ( | NumericPropertyId | $propertyId | ) |
NumericPropertyId | $propertyId |
Implements Wikibase\Lib\Store\PropertyInfoStore.
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::setPropertyInfo | ( | NumericPropertyId | $propertyId, |
array | $info ) |
NumericPropertyId | $propertyId | |
array | $info |
InvalidArgumentException |
Implements Wikibase\Lib\Store\PropertyInfoStore.
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
const Wikibase\Lib\Store\CacheAwarePropertyInfoStore::CACHE_CLASS = 'CacheAwarePropertyInfoStore' |