Implement makeKeyInternal() for ReplicatedBagOStuff/MultiWriteBagOStuff
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 10 Jul 2018 12:25:04 +0000 (13:25 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 10 Jul 2018 12:25:04 +0000 (13:25 +0100)
Make these proxy to the "write"/"main" cache backend like the other
key methods.

Change-Id: Ie176577d9b52807493d6da9eea963ba440b86330

includes/libs/objectcache/MultiWriteBagOStuff.php
includes/libs/objectcache/ReplicatedBagOStuff.php

index fd45024..64bfa95 100644 (file)
@@ -250,6 +250,10 @@ class MultiWriteBagOStuff extends BagOStuff {
                return $ret;
        }
 
+       public function makeKeyInternal( $keyspace, $args ) {
+               return $this->caches[0]->makeKeyInternal( ...func_get_args() );
+       }
+
        public function makeKey( $class, $component = null ) {
                return $this->caches[0]->makeKey( ...func_get_args() );
        }
index 1c14f7c..f2c3732 100644 (file)
@@ -129,6 +129,10 @@ class ReplicatedBagOStuff extends BagOStuff {
                $this->readStore->clearLastError();
        }
 
+       public function makeKeyInternal( $keyspace, $args ) {
+               return $this->writeStore->makeKeyInternal( ...func_get_args() );
+       }
+
        public function makeKey( $class, $component = null ) {
                return $this->writeStore->makeKey( ...func_get_args() );
        }