wiki.techinc.nl/tests/phpunit/includes/libs
Aaron Schulz 611e2d5596 objectcache: move version numbers to the main wrapper in WANObjectCache
Add FLD_VALUE_VERSION key to the value wrapper array to hold the version
number used in getWithSetCallback(). Remove the VFLD_* wrapper array from
FLD_VALUE for versioned values.

Keys stored with the old VFLD_VERSION and VFLD_DATA fields will be seen as
having the wrong version. The previous WAN cache code will see the new keys
that use FLD_VALUE_VERSION as having the wrong version too. In either case,
the usual variant key logic applies, so there should not be any issues.

This means that moving from a non-versioned to a versioned cache key is no
longer a breaking change when, for the same key, some code passes a version
number to getWithSetCallback() while other code does not.

Also:
* Make "pcTTL" respect the version number for sanity
* Make sure set() respects TTL_UNCACHEABLE for completeness
* Track slow regeneration callback runtime in FLD_GENERATION_TIME
* Remove is_callable() check overhead and rely on PHP Error instances
* Refactor unwrap() to return a more immediately useful value
* Simplify getNonProcessCachedKeys() signature by using $opts
* Split out PURGE_* constants for purge entries since those keys are
  never stored in any serialize value but are only in PHP arrays
* Rename doGetWithSetCallback() to be more succinct
* Rename and reorganize some variables for clarity

Change-Id: I4060b19583cdfd9fa36c91d7014441eeef4b3609
2019-07-11 18:04:50 -07:00
..
composer Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
http Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
mime Recognizes Open Document Database 2019-07-09 13:42:07 +02:00
objectcache objectcache: move version numbers to the main wrapper in WANObjectCache 2019-07-11 18:04:50 -07:00
ParamValidator API: Abstract out parameter validation 2019-06-23 10:58:44 +02:00
rdbms Add ResultWrapper/FakeResultWrapper tests 2019-07-11 19:57:14 +00:00
services Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
stats Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
ArrayUtilsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CookieTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CSSMinTest.php tests: Use standard utilities for temporary file names 2019-05-06 17:21:45 +00:00
DeferredStringifierTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
DnsSrvDiscovererTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
EasyDeflateTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
GenericArrayObjectTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HashRingTest.php Reduce HashRing test load to avoid several seconds of CPU 2019-06-14 12:57:12 +01:00
HtmlArmorTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
IEUrlExtensionTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
IPTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
JavaScriptMinifierTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MapCacheLRUTest.php Make MapCacheLRU::get() accept a default value and improve $maxAge default 2019-07-10 22:27:51 +00:00
MemoizedCallableTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MWMessagePackTest.php Remove covers validator trait where it is not needed 2019-05-17 16:49:31 +02:00
ProcessCacheLRUTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
SamplingStatsdClientTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
StaticArrayWriterTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
StringUtilsTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
TimingTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XhprofDataTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XhprofTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
XmlTypeCheckTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00