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 "EditPage: Remove unused $is*Subpage variables, deprecated in 1.30"
[lhc/web/wiklou.git]
/
includes
/
libs
/
objectcache
/
EmptyBagOStuff.php
diff --git
a/includes/libs/objectcache/EmptyBagOStuff.php
b/includes/libs/objectcache/EmptyBagOStuff.php
index
55e84b0
..
3f66c06
100644
(file)
--- a/
includes/libs/objectcache/EmptyBagOStuff.php
+++ b/
includes/libs/objectcache/EmptyBagOStuff.php
@@
-27,11
+27,15
@@
* @ingroup Cache
*/
class EmptyBagOStuff extends BagOStuff {
* @ingroup Cache
*/
class EmptyBagOStuff extends BagOStuff {
- p
ublic function get( $key, &$casToken = null
, $flags = 0 ) {
+ p
rotected function doGet( $key
, $flags = 0 ) {
return false;
}
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;
}
return true;
}
@@
-39,7
+43,7
@@
class EmptyBagOStuff extends BagOStuff {
return true;
}
return true;
}
- public function merge( $key,
$callback, $exptime = 0, $attempts = 1
0 ) {
+ public function merge( $key,
callable $callback, $exptime = 0, $attempts = 10, $flags =
0 ) {
return true; // faster
}
}
return true; // faster
}
}