objectcache: add "staleTTL" into WANObjectCache::getWithSetCallback()
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 21 Nov 2017 22:11:01 +0000 (14:11 -0800)
committerKrinkle <krinklemail@gmail.com>
Sun, 26 Nov 2017 21:49:47 +0000 (21:49 +0000)
commitfce6862e46be7056d723e0b30283dc8d07168bbf
tree8d772eaad0a320004e622495ba08fec22db1f03b
parent1772c4fe347cc7fc133e5fbb7f01d1e2ddfc812f
objectcache: add "staleTTL" into WANObjectCache::getWithSetCallback()

This simply involves passing it through to the set() call

Also added some related commons to adaptiveTTL() involving
usage of this option.

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