objectcache: respect process cache in getMultiWithSetCallback()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 26 May 2017 18:12:07 +0000 (11:12 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 26 May 2017 22:34:45 +0000 (15:34 -0700)
commit6ddaf52d32b75d4ed6dbac9b4ed5d8c69e746ebd
treefb2681c79dabc1ddc1340acda455fe016ef9a947
parent721f2db904f745aed3de249e9f716682e7333a3c
objectcache: respect process cache in getMultiWithSetCallback()

Backend cache queries are now avoided if they are fresh in memory.

Also factor out some code into private methods for clarity.

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