MediaWiki
REL1_40
CacheableSource.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Settings\Cache
;
4
5
use
MediaWiki\Settings\Source\SettingsSource
;
6
14
interface
CacheableSource
extends
SettingsSource
{
27
public
function
allowsStaleLoad
(): bool;
28
34
public
function
getExpiryTtl
(): int;
35
64
public
function
getExpiryWeight
(): float;
65
72
public
function
getHashKey
(): string;
73
}
MediaWiki\Settings\Cache\CacheableSource
A SettingsSource that can be cached.
Definition
CacheableSource.php:14
MediaWiki\Settings\Cache\CacheableSource\allowsStaleLoad
allowsStaleLoad()
Allow the caching layer to attempt to return stale results in the event that loading from the origina...
MediaWiki\Settings\Cache\CacheableSource\getHashKey
getHashKey()
Returns a deterministically computed key for use in caching settings from this source.
MediaWiki\Settings\Cache\CacheableSource\getExpiryTtl
getExpiryTtl()
Returns the cache TTL (in seconds) for this source.
MediaWiki\Settings\Cache\CacheableSource\getExpiryWeight
getExpiryWeight()
Coefficient used in determining early expiration of cached settings to avoid stampedes.
MediaWiki\Settings\Source\SettingsSource
A SettingsSource is meant to represent any kind of local or remote store from which settings can be r...
Definition
SettingsSource.php:16
MediaWiki\Settings\Cache
Definition
CacheableSource.php:3
includes
Settings
Cache
CacheableSource.php
Generated on Thu Jun 27 2024 14:04:08 for MediaWiki by
1.10.0