Merge "Revert "Revision: Simplify loadText() with nested getWithSetCallback""
[lhc/web/wiklou.git] / includes / libs / objectcache / EmptyBagOStuff.php
index bef0456..3f66c06 100644 (file)
@@ -31,7 +31,11 @@ class EmptyBagOStuff extends BagOStuff {
                return false;
        }
 
-       public function set( $key, $value, $exp = 0 ) {
+       public function add( $key, $value, $exp = 0 ) {
+               return true;
+       }
+
+       public function set( $key, $value, $exp = 0, $flags = 0 ) {
                return true;
        }
 
@@ -39,7 +43,7 @@ class EmptyBagOStuff extends BagOStuff {
                return true;
        }
 
-       public function merge( $key, $callback, $exptime = 0, $attempts = 10 ) {
+       public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
                return true; // faster
        }
 }