objectcache: add mcrouter support to WANObjectCache
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Aug 2016 02:27:50 +0000 (19:27 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 18 Aug 2016 22:42:11 +0000 (22:42 +0000)
commit70547f3fa30402f7faf53109372d832a241488a2
tree0d9f1db87728701b4c9846a15a171ba9cf0cbc46
parentbbf1102f9f2f9220a7ff6513976d2970722e84b1
objectcache: add mcrouter support to WANObjectCache

* Update documentation about relay methods.
* Change interim key set() to add() to avoid broadcasting it.
* Remove the behavior of doing purges synchronously in the
  local DC first before relay. In both the event relayer and
  mcrouter case, they will be asynchronous. It was hardly
  even possible to use such behavior since loads come from
  slave DBs, which do not see changes right after COMMIT.

Bug: T97562
Change-Id: I7759c82ae6e1b72fc227882a99c9a712a46374f6
includes/libs/objectcache/EmptyBagOStuff.php
includes/libs/objectcache/WANObjectCache.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php