dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make BagOStuff::incr abstract to discourage bad implementations
[lhc/web/wiklou.git]
/
includes
/
libs
/
objectcache
/
EmptyBagOStuff.php
diff --git
a/includes/libs/objectcache/EmptyBagOStuff.php
b/includes/libs/objectcache/EmptyBagOStuff.php
index
9300dc2
..
e0f4364
100644
(file)
--- a/
includes/libs/objectcache/EmptyBagOStuff.php
+++ b/
includes/libs/objectcache/EmptyBagOStuff.php
@@
-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
}