From 61a7e1acd0af4a5386df03335733accfde179fa1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 27 Jun 2018 09:16:11 +0100 Subject: [PATCH] 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 --- includes/libs/objectcache/ReplicatedBagOStuff.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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() ); + } } -- 2.20.1