Public Member Functions | |
__construct ($handler= 'db3', $dir=false) | |
encode ($value, $expiry) | |
Encode value and expiry for storage. | |
decode ($blob) | |
getReader () | |
getWriter () | |
get ($key) | |
set ($key, $value, $exptime=0) | |
delete ($key, $time=0) | |
add ($key, $value, $exptime=0) | |
keys () | |
Public Attributes | |
$mHandler | |
$mFile | |
$mReader | |
$mWriter | |
$mDisabled |
Definition at line 676 of file BagOStuff.php.
DBABagOStuff::__construct | ( | $ | handler = 'db3' , |
|
$ | dir = false | |||
) |
Definition at line 679 of file BagOStuff.php.
References $wgTmpDirectory, wfDebug(), and wfWikiID().
DBABagOStuff::add | ( | $ | key, | |
$ | value, | |||
$ | exptime = 0 | |||
) |
Reimplemented from BagOStuff.
Definition at line 784 of file BagOStuff.php.
References $blob, $key, decode(), encode(), getWriter(), wfProfileIn(), and wfProfileOut().
DBABagOStuff::decode | ( | $ | blob | ) |
Definition at line 702 of file BagOStuff.php.
References $blob.
DBABagOStuff::delete | ( | $ | key, | |
$ | time = 0 | |||
) |
Reimplemented from BagOStuff.
Definition at line 771 of file BagOStuff.php.
References $key, getWriter(), wfDebug(), wfProfileIn(), and wfProfileOut().
DBABagOStuff::encode | ( | $ | value, | |
$ | expiry | |||
) |
Encode value and expiry for storage.
Definition at line 693 of file BagOStuff.php.
References BagOStuff::convertExpiry().
DBABagOStuff::get | ( | $ | key | ) |
Reimplemented from BagOStuff.
Definition at line 733 of file BagOStuff.php.
References $key, decode(), getReader(), getWriter(), wfDebug(), wfProfileIn(), and wfProfileOut().
DBABagOStuff::getReader | ( | ) |
DBABagOStuff::getWriter | ( | ) |
Definition at line 725 of file BagOStuff.php.
References wfDebug().
Referenced by add(), delete(), get(), getReader(), and set().
DBABagOStuff::keys | ( | ) |
Reimplemented from BagOStuff.
Definition at line 808 of file BagOStuff.php.
References $key, $reader, $result, and getReader().
DBABagOStuff::set | ( | $ | key, | |
$ | value, | |||
$ | exptime = 0 | |||
) |
Reimplemented from BagOStuff.
Definition at line 757 of file BagOStuff.php.
References $blob, $key, encode(), getWriter(), wfDebug(), wfProfileIn(), and wfProfileOut().
DBABagOStuff::$mDisabled |
Definition at line 677 of file BagOStuff.php.
DBABagOStuff::$mFile |
Definition at line 677 of file BagOStuff.php.
DBABagOStuff::$mHandler |
Definition at line 677 of file BagOStuff.php.
DBABagOStuff::$mReader |
Definition at line 677 of file BagOStuff.php.
DBABagOStuff::$mWriter |
Definition at line 677 of file BagOStuff.php.