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
Merge "Change .tocnumber to use grey text for section numbers in Table of Contents...
[lhc/web/wiklou.git]
/
includes
/
libs
/
objectcache
/
EmptyBagOStuff.php
diff --git
a/includes/libs/objectcache/EmptyBagOStuff.php
b/includes/libs/objectcache/EmptyBagOStuff.php
index
4321b25
..
3f66c06
100644
(file)
--- a/
includes/libs/objectcache/EmptyBagOStuff.php
+++ b/
includes/libs/objectcache/EmptyBagOStuff.php
@@
-31,6
+31,10
@@
class EmptyBagOStuff extends BagOStuff {
return false;
}
return false;
}
+ public function add( $key, $value, $exp = 0 ) {
+ return true;
+ }
+
public function set( $key, $value, $exp = 0, $flags = 0 ) {
return true;
}
public function set( $key, $value, $exp = 0, $flags = 0 ) {
return true;
}
@@
-39,7
+43,7
@@
class EmptyBagOStuff extends BagOStuff {
return true;
}
return true;
}
- public function merge( $key, $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
+ public function merge( $key,
callable
$callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
return true; // faster
}
}
return true; // faster
}
}