X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Flibs%2Fobjectcache%2FEmptyBagOStuff.php;h=3f66c06c9ff9f5ec866327b43603f7952886e1e7;hb=26b56403a1b31e16381ebe25e8df9afcfde36282;hp=bef04569b1a89efc13a47a0e1c89831cbd400acb;hpb=bacc11eb30ddf01624d5448f432b96afdae67c28;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/objectcache/EmptyBagOStuff.php b/includes/libs/objectcache/EmptyBagOStuff.php index bef04569b1..3f66c06c9f 100644 --- a/includes/libs/objectcache/EmptyBagOStuff.php +++ b/includes/libs/objectcache/EmptyBagOStuff.php @@ -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 } }