Make BagOStuff::incr abstract to discourage bad implementations
[lhc/web/wiklou.git] / includes / libs / objectcache / EmptyBagOStuff.php
index 3bf58df..e0f4364 100644 (file)
@@ -31,7 +31,7 @@ class EmptyBagOStuff extends BagOStuff {
                return false;
        }
 
-       public function add( $key, $value, $exp = 0 ) {
+       public function add( $key, $value, $exp = 0, $flags = 0 ) {
                return true;
        }
 
@@ -43,6 +43,10 @@ class EmptyBagOStuff extends BagOStuff {
                return true;
        }
 
+       public function incr( $key, $value = 1 ) {
+               return false;
+       }
+
        public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
                return true; // faster
        }