MediaWiki
REL1_19
|
This is a test of the interface, mainly. More...
Public Member Functions | |
__construct () | |
delete ($key, $time=0) | |
Delete an item. | |
get ($key) | |
Get an item with the given key. | |
keys () | |
set ($key, $value, $exptime=0) | |
Set an item. | |
Public Attributes | |
$bag | |
Protected Member Functions | |
expire ($key) |
This is a test of the interface, mainly.
It stores things in an associative array, which is not going to persist between program runs.
Definition at line 9 of file HashBagOStuff.php.
Definition at line 12 of file HashBagOStuff.php.
HashBagOStuff::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 44 of file HashBagOStuff.php.
HashBagOStuff::expire | ( | $ | key | ) | [protected] |
Definition at line 16 of file HashBagOStuff.php.
Referenced by get().
HashBagOStuff::get | ( | $ | key | ) |
Get an item with the given key.
Returns false if it does not exist.
$key | string |
Reimplemented from BagOStuff.
Definition at line 28 of file HashBagOStuff.php.
References expire().
Reimplemented from BagOStuff.
Definition at line 54 of file HashBagOStuff.php.
HashBagOStuff::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 40 of file HashBagOStuff.php.
References BagOStuff\convertExpiry().
HashBagOStuff::$bag |
Definition at line 10 of file HashBagOStuff.php.