MediaWiki
REL1_19
|
A BagOStuff object with no objects in it. More...
Public Member Functions | |
delete ($key, $time=0) | |
Delete an item. | |
get ($key) | |
Get an item with the given key. | |
set ($key, $value, $exp=0) | |
Set an item. |
A BagOStuff object with no objects in it.
Used to provide a no-op object to calling code.
Definition at line 8 of file EmptyBagOStuff.php.
EmptyBagOStuff::delete | ( | $ | key, |
$ | time = 0 |
||
) |
Delete an item.
$key | string |
$time | int Amount of time to delay the operation (mostly memcached-specific) |
Reimplemented from BagOStuff.
Definition at line 17 of file EmptyBagOStuff.php.
EmptyBagOStuff::get | ( | $ | key | ) |
Get an item with the given key.
Returns false if it does not exist.
$key | string |
Reimplemented from BagOStuff.
Definition at line 9 of file EmptyBagOStuff.php.
EmptyBagOStuff::set | ( | $ | key, |
$ | value, | ||
$ | exptime = 0 |
||
) |
Set an item.
$key | string |
$value | mixed |
$exptime | int Either an interval in seconds or a unix timestamp for expiry |
Reimplemented from BagOStuff.
Definition at line 13 of file EmptyBagOStuff.php.