Make BagOStuff::incr abstract to discourage bad implementations
[lhc/web/wiklou.git] / includes / libs / objectcache / EmptyBagOStuff.php
index 9300dc2..e0f4364 100644 (file)
@@ -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
        }