MediaWiki master
|
LCStore implementation which stores data as a collection of CDB files. More...
Inherits LCStore.
Public Member Functions | |
__construct ( $conf=[]) | |
finishWrite () | |
Finish a cache write transaction. | |
get ( $code, $key) | |
Get a value. | |
set ( $key, $value) | |
Set a key to a given value. | |
startWrite ( $code) | |
Start a cache write transaction. | |
Protected Member Functions | |
getFileName ( $code) | |
LCStore implementation which stores data as a collection of CDB files.
Profiling indicates that on Linux, this implementation outperforms MySQL if the directory is on a local filesystem and there is ample kernel cache space. The performance advantage is greater when the DBA extension is available than it is with the PHP port.
See Cdb.php and https://cr.yp.to/cdb.html
Definition at line 36 of file LCStoreCDB.php.
LCStoreCDB::__construct | ( | $conf = [] | ) |
Definition at line 50 of file LCStoreCDB.php.
LCStoreCDB::finishWrite | ( | ) |
Finish a cache write transaction.
Implements LCStore.
Definition at line 101 of file LCStoreCDB.php.
LCStoreCDB::get | ( | $code, | |
$key ) |
Get a value.
string | $code | Language code |
string | $key | Cache key |
Implements LCStore.
Definition at line 54 of file LCStoreCDB.php.
References getFileName(), and wfDebug().
|
protected |
Definition at line 115 of file LCStoreCDB.php.
Referenced by get(), and startWrite().
LCStoreCDB::set | ( | $key, | |
$value ) |
Set a key to a given value.
startWrite() must be called before this is called, and finishWrite() must be called after.
string | $key | |
mixed | $value |
Implements LCStore.
Definition at line 108 of file LCStoreCDB.php.
LCStoreCDB::startWrite | ( | $code | ) |
Start a cache write transaction.
string | $code | Language code |
Implements LCStore.
Definition at line 86 of file LCStoreCDB.php.
References getFileName(), and wfMkdirParents().