objectcache: add expiration check callback to WANObjectCache::getWithSetCallback
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 5 Dec 2018 19:46:57 +0000 (14:46 -0500)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 21 Dec 2018 19:25:26 +0000 (19:25 +0000)
commit2190b78987ad609a14176bc75c32f33582d3cf7b
treefaaa2de96b3f43da025767990183a4f2b6614aeb
parent791a1cc565212bca58ddedf268d379ac57df3ceb
objectcache: add expiration check callback to WANObjectCache::getWithSetCallback

This is useful when the timestamps to be checked depend on the value or are stored
in the database rather than as check keys.

Change-Id: I81ab08a943ee7d2f96a132d371965501941ed37f
includes/libs/objectcache/WANObjectCache.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php