Inherited by APCBagOStuff, DBABagOStuff, eAccelBagOStuff, HashBagOStuff, SqlBagOStuff, TurckBagOStuff, and XCacheBagOStuff.
Public Member Functions | |
__construct () | |
set_debug ($bool) | |
get ($key) | |
set ($key, $value, $exptime=0) | |
delete ($key, $time=0) | |
lock ($key, $timeout=0) | |
unlock ($key) | |
keys () | |
get_multi ($keys) | |
set_multi ($hash, $exptime=0) | |
add ($key, $value, $exptime=0) | |
add_multi ($hash, $exptime=0) | |
delete_multi ($keys, $time=0) | |
replace ($key, $value, $exptime=0) | |
incr ($key, $value=1) | |
decr ($key, $value=1) | |
_debug ($text) | |
Static Public Member Functions | |
static | convertExpiry ($exptime) |
Convert an optionally relative time to an absolute time. | |
Public Attributes | |
$debugmode |
backends for local hash array and SQL table included: $bag = new HashBagOStuff(); $bag = new MediaWikiBagOStuff($tablename); # connect to db first
Definition at line 40 of file BagOStuff.php.
BagOStuff::__construct | ( | ) |
Reimplemented in HashBagOStuff.
Definition at line 43 of file BagOStuff.php.
References set_debug().
BagOStuff::_debug | ( | $ | text | ) |
Definition at line 153 of file BagOStuff.php.
References wfDebug().
Referenced by SqlBagOStuff::_query(), SqlBagOStuff::get(), and SqlBagOStuff::keys().
BagOStuff::add | ( | $ | key, | |
$ | value, | |||
$ | exptime = 0 | |||
) |
Reimplemented in DBABagOStuff.
Definition at line 98 of file BagOStuff.php.
References $key.
Referenced by add_multi().
BagOStuff::add_multi | ( | $ | hash, | |
$ | exptime = 0 | |||
) |
static BagOStuff::convertExpiry | ( | $ | exptime | ) | [static] |
Convert an optionally relative time to an absolute time.
Definition at line 161 of file BagOStuff.php.
Referenced by DBABagOStuff::encode(), and HashBagOStuff::set().
BagOStuff::decr | ( | $ | key, | |
$ | value = 1 | |||
) |
BagOStuff::delete | ( | $ | key, | |
$ | time = 0 | |||
) |
Reimplemented in HashBagOStuff, SqlBagOStuff, TurckBagOStuff, APCBagOStuff, eAccelBagOStuff, XCacheBagOStuff, and DBABagOStuff.
Definition at line 64 of file BagOStuff.php.
BagOStuff::delete_multi | ( | $ | keys, | |
$ | time = 0 | |||
) |
BagOStuff::get | ( | $ | key | ) |
Reimplemented in HashBagOStuff, SqlBagOStuff, TurckBagOStuff, APCBagOStuff, eAccelBagOStuff, XCacheBagOStuff, and DBABagOStuff.
Definition at line 54 of file BagOStuff.php.
BagOStuff::get_multi | ( | $ | keys | ) |
BagOStuff::incr | ( | $ | key, | |
$ | value = 1 | |||
) |
BagOStuff::keys | ( | ) |
Reimplemented in HashBagOStuff, SqlBagOStuff, and DBABagOStuff.
Definition at line 79 of file BagOStuff.php.
BagOStuff::lock | ( | $ | key, | |
$ | timeout = 0 | |||
) |
BagOStuff::replace | ( | $ | key, | |
$ | value, | |||
$ | exptime = 0 | |||
) |
BagOStuff::set | ( | $ | key, | |
$ | value, | |||
$ | exptime = 0 | |||
) |
Reimplemented in HashBagOStuff, SqlBagOStuff, TurckBagOStuff, APCBagOStuff, eAccelBagOStuff, XCacheBagOStuff, and DBABagOStuff.
Definition at line 59 of file BagOStuff.php.
BagOStuff::set_debug | ( | $ | bool | ) |
BagOStuff::set_multi | ( | $ | hash, | |
$ | exptime = 0 | |||
) |
BagOStuff::unlock | ( | $ | key | ) |
BagOStuff::$debugmode |
Definition at line 41 of file BagOStuff.php.