objectcache: add "pcGroup" option to WANObjectCache::getWithSetCallback()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Sep 2016 22:36:14 +0000 (15:36 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Sep 2016 23:35:15 +0000 (16:35 -0700)
commit5316e7d70061457420dc27434d9e7230bc7f031d
treeffe3521409e660082c87b39c7d4492347f2d0b0f
parenteb6536bd0cbb97ef42c9b1385dd7bc23a021d93a
objectcache: add "pcGroup" option to WANObjectCache::getWithSetCallback()

This lets callers have their own process cache but keep it
managed in a central location, making it easier to reset
when DB transaction snapshot are flushed or when unit tests
want to clear caches between runs.

Use this to replace the Revision text process cache.

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