MediaWiki master
CacheableSource.php
Go to the documentation of this file.
1<?php
2
4
6
27 public function allowsStaleLoad(): bool;
28
34 public function getExpiryTtl(): int;
35
64 public function getExpiryWeight(): float;
65
72 public function getHashKey(): string;
73}
A SettingsSource that can be cached.
allowsStaleLoad()
Allow the caching layer to attempt to return stale results in the event that loading from the origina...
getHashKey()
Returns a deterministically computed key for use in caching settings from this source.
getExpiryTtl()
Returns the cache TTL (in seconds) for this source.
getExpiryWeight()
Coefficient used in determining early expiration of cached settings to avoid stampedes.
A SettingsSource is meant to represent any kind of local or remote store from which settings can be r...