Inherits BagOStuff.
Public Member Functions | |
__construct () | |
get ($key) | |
Get an item with the given key. | |
set ($key, $value, $exptime=0) | |
Set an item. | |
delete ($key, $time=0) | |
keys () | |
Public Attributes | |
$bag | |
Protected Member Functions | |
expire ($key) |
It stores things in an associative array, which is not going to persist between program runs.
Definition at line 172 of file BagOStuff.php.
HashBagOStuff::__construct | ( | ) |
Definition at line 175 of file BagOStuff.php.
HashBagOStuff::delete | ( | $ | key, | |
$ | time = 0 | |||
) |
HashBagOStuff::expire | ( | $ | key | ) | [protected] |
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 188 of file BagOStuff.php.
References expire().
HashBagOStuff::keys | ( | ) |
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 198 of file BagOStuff.php.
References BagOStuff::convertExpiry().
HashBagOStuff::$bag |
Definition at line 173 of file BagOStuff.php.