MediaWiki
REL1_32
EmptyBagOStuff.php
Go to the documentation of this file.
1
<?php
29
class
EmptyBagOStuff
extends
BagOStuff
{
30
protected
function
doGet
( $key, $flags = 0 ) {
31
return
false
;
32
}
33
34
public
function
add
( $key,
$value
, $exp = 0 ) {
35
return
true
;
36
}
37
38
public
function
set
( $key,
$value
, $exp = 0, $flags = 0 ) {
39
return
true
;
40
}
41
42
public
function
delete
( $key ) {
43
return
true
;
44
}
45
46
public
function
merge
( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) {
47
return
true
;
// faster
48
}
49
}
BagOStuff
Class representing a cache/ephemeral data store.
Definition
BagOStuff.php:58
EmptyBagOStuff
A BagOStuff object with no objects in it.
Definition
EmptyBagOStuff.php:29
EmptyBagOStuff\add
add( $key, $value, $exp=0)
Definition
EmptyBagOStuff.php:34
EmptyBagOStuff\doGet
doGet( $key, $flags=0)
Definition
EmptyBagOStuff.php:30
EmptyBagOStuff\merge
merge( $key, callable $callback, $exptime=0, $attempts=10, $flags=0)
Merge changes into the existing cache value (possibly creating a new one)
Definition
EmptyBagOStuff.php:46
$value
$value
Definition
styleTest.css.php:49
includes
libs
objectcache
EmptyBagOStuff.php
Generated on Mon Nov 25 2024 15:57:16 for MediaWiki by
1.10.0