From: Aaron Schulz Date: Wed, 27 Jun 2018 08:16:11 +0000 (+0100) Subject: objectcache: define makeKey()/makeGlobalKey() for ReplicatedBagOStuff X-Git-Tag: 1.34.0-rc.0~4943^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=61a7e1acd0af4a5386df03335733accfde179fa1;p=lhc%2Fweb%2Fwiklou.git objectcache: define makeKey()/makeGlobalKey() for ReplicatedBagOStuff Proxy to the "master"/"write" cache object method. This is similar to the approach taken in MultiWriteBagOStuff Bug: T198279 Change-Id: If0933246b7ef4fc07ebeec4c3c9625b1137dbe05 --- diff --git a/includes/libs/objectcache/ReplicatedBagOStuff.php b/includes/libs/objectcache/ReplicatedBagOStuff.php index 56b6e0ecc2..1c14f7cac1 100644 --- a/includes/libs/objectcache/ReplicatedBagOStuff.php +++ b/includes/libs/objectcache/ReplicatedBagOStuff.php @@ -128,4 +128,12 @@ class ReplicatedBagOStuff extends BagOStuff { $this->writeStore->clearLastError(); $this->readStore->clearLastError(); } + + public function makeKey( $class, $component = null ) { + return $this->writeStore->makeKey( ...func_get_args() ); + } + + public function makeGlobalKey( $class, $component = null ) { + return $this->writeStore->makeGlobalKey( ...func_get_args() ); + } }