Implementation of PropertyInfoStore wrapping the instance modifying the local PropertyInfoStore and adjusting the property info cache accordingly.
More...
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.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::__construct |
( |
PropertyInfoStore |
$store, |
|
|
WANObjectCache |
$cache, |
|
|
|
$cacheDuration = 3600 , |
|
|
|
$cacheKeyGroup = '' |
|
) |
| |
- Parameters
-
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 |
◆ deleteCacheKeyForProperty()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::deleteCacheKeyForProperty |
( |
PropertyId |
$propertyId | ) |
|
|
private |
◆ deleteFullTableCacheKey()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::deleteFullTableCacheKey |
( |
| ) |
|
|
private |
◆ getFullTableCacheKey()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::getFullTableCacheKey |
( |
| ) |
|
|
private |
◆ getSinglePropertyCacheKey()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::getSinglePropertyCacheKey |
( |
PropertyId |
$propertyId | ) |
|
|
private |
◆ removePropertyInfo()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::removePropertyInfo |
( |
PropertyId |
$propertyId | ) |
|
◆ setPropertyInfo()
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::setPropertyInfo |
( |
PropertyId |
$propertyId, |
|
|
array |
$info |
|
) |
| |
◆ $cache
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::$cache |
|
protected |
◆ $cacheDuration
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::$cacheDuration |
|
protected |
◆ $cacheKeyGroup
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::$cacheKeyGroup |
|
protected |
◆ $innerStore
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::$innerStore |
|
protected |
◆ $logger
Wikibase\Lib\Store\CacheAwarePropertyInfoStore::$logger |
|
private |
◆ CACHE_CLASS
◆ SINGLE_PROPERTY_CACHE_KEY_SEPARATOR
const Wikibase\Lib\Store\CacheAwarePropertyInfoStore::SINGLE_PROPERTY_CACHE_KEY_SEPARATOR = ':' |
|
private |
The documentation for this class was generated from the following file: