objectcache: remove redundant merge() definitions
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 26 Mar 2019 22:56:43 +0000 (15:56 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 27 Mar 2019 18:13:40 +0000 (18:13 +0000)
Change-Id: Ide24dd395b300f8d747b2be307dbbad08f6b221d

includes/libs/objectcache/APCBagOStuff.php
includes/libs/objectcache/APCUBagOStuff.php
includes/libs/objectcache/HashBagOStuff.php
includes/libs/objectcache/MemcachedBagOStuff.php
includes/libs/objectcache/RESTBagOStuff.php
includes/libs/objectcache/RedisBagOStuff.php
includes/libs/objectcache/WinCacheBagOStuff.php

index 74dcddf..0d4ca11 100644 (file)
@@ -120,10 +120,6 @@ class APCBagOStuff extends BagOStuff {
                return apc_dec( $key . self::KEY_SUFFIX, $value );
        }
 
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
-       }
-
        protected function serialize( $value ) {
                if ( !$this->nativeSerialize && !$this->isInteger( $value ) ) {
                        $value = serialize( $value );
index 55e9405..c36a1dc 100644 (file)
@@ -104,8 +104,4 @@ class APCUBagOStuff extends APCBagOStuff {
                        return false;
                }
        }
-
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
-       }
 }
index eaea2d1..d1f312a 100644 (file)
@@ -130,10 +130,6 @@ class HashBagOStuff extends BagOStuff {
                return false;
        }
 
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
-       }
-
        /**
         * Clear all values in cache
         */
index 5453862..b0fbece 100644 (file)
@@ -91,10 +91,6 @@ class MemcachedBagOStuff extends BagOStuff {
                return ( $n !== false && $n !== null ) ? $n : false;
        }
 
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts );
-       }
-
        public function changeTTL( $key, $exptime = 0, $flags = 0 ) {
                return $this->client->touch( $this->validateKeyEncoding( $key ),
                        $this->fixExpiry( $exptime ) );
index 7e578f9..3303692 100644 (file)
@@ -164,10 +164,6 @@ class RESTBagOStuff extends BagOStuff {
                return false;
        }
 
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
-       }
-
        /**
         * Handle storage error
         * @param string $msg Error message
index f64fe7e..af90c5c 100644 (file)
@@ -297,10 +297,6 @@ class RedisBagOStuff extends BagOStuff {
                return $result;
        }
 
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts );
-       }
-
        /**
         * Non-atomic implementation of incr().
         *
index 0ca3e4a..fb64d77 100644 (file)
@@ -93,10 +93,6 @@ class WinCacheBagOStuff extends BagOStuff {
                return true;
        }
 
-       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
-               return $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags );
-       }
-
        /**
         * Construct a cache key.
         *