wiki.techinc.nl/tests/phpunit/includes/libs/objectcache
Aaron Schulz 3f64eca5a4 objectcache: fix WANCache getWithSetCallback() when TTL < "lowTTL"
Previously, the refresh probability ramp-up logic assumed that
keys were always assigned logical TTLs >= "lowTTL". Thus, if a
key was saved with a TTL of 3 seconds and "lowTTL" was 10 seconds,
then the probability of a refresh at t=0 seconds would incorrectly
equal the value it should have at t=7.

Also:
* Use class constants for key metadata array keys. This makes it
  easy to track the usage of options and is less prone to typos.
* Improve some documentation slightly.

Bug: T264787
Change-Id: I7267e8639617fb8dc0850530465ff9d1b899b592
2020-11-10 17:49:32 -08:00
..
APCUBagOStuffTest.php objectcache: Split out BagOStuffTestBase class for easier subclassing 2020-06-13 20:15:23 +00:00
BagOStuffTest.php objectcache: Split out BagOStuffTestBase class for easier subclassing 2020-06-13 20:15:23 +00:00
BagOStuffTestBase.php User: enforce pingLimiter() expiry time 2020-09-03 15:57:01 +00:00
CachedBagOStuffTest.php build: Bump mediawiki-codesniffer to 31.0.0 2020-05-30 14:56:28 +00:00
HashBagOStuffTest.php objectcache: Add QoS flags to HashBagOStuff 2020-09-17 01:25:29 +00:00
MultiWriteBagOStuffTest.php MediaWikiTestCase to MediaWikiIntegrationTestCase 2020-06-30 17:02:22 +01:00
WANObjectCacheTest.php objectcache: fix WANCache getWithSetCallback() when TTL < "lowTTL" 2020-11-10 17:49:32 -08:00