Merge "objectcache: define makeKey()/makeGlobalKey() for ReplicatedBagOStuff"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 27 Jun 2018 15:55:27 +0000 (15:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 27 Jun 2018 15:55:27 +0000 (15:55 +0000)
includes/libs/objectcache/ReplicatedBagOStuff.php

index 56b6e0e..1c14f7c 100644 (file)
@@ -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() );
+       }
 }