objectcache: detect default getWithSetCallback() set options
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 22 Oct 2016 04:12:12 +0000 (21:12 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 16 Nov 2016 04:53:53 +0000 (04:53 +0000)
commitb47ce21cec3a4340dd37c773210a514350f10297
tree81a28f812c9545e7546c02ca223abcddabc11c5f
parentea42d90053b36cef47f318a1d50c18dfafc6b7b8
objectcache: detect default getWithSetCallback() set options

This works by setting a callback to return the cache set
options. The callback will watch DB reads and create a
merged result from said usage.

This handles callers that are missing getCacheSetOptions().

Change-Id: Ia264f011e45e8cf105480955dad7e2c4c2357b73
13 files changed:
includes/ServiceWiring.php
includes/db/MWLBFactory.php
includes/libs/objectcache/WANObjectCache.php
includes/libs/rdbms/database/DBConnRef.php
includes/libs/rdbms/database/Database.php
includes/libs/rdbms/database/IDatabase.php
includes/libs/rdbms/lbfactory/ILBFactory.php
includes/libs/rdbms/lbfactory/LBFactory.php
includes/libs/rdbms/loadbalancer/ILoadBalancer.php
includes/libs/rdbms/loadbalancer/LoadBalancer.php
includes/libs/rdbms/loadbalancer/LoadBalancerSingle.php
tests/phpunit/includes/db/LBFactoryTest.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php