MediaWiki
1.30.0
|
LCStore implementation which uses the standard DB functions to store data. More...
Public Member Functions | |
finishWrite () | |
Finish a write transaction. More... | |
get ( $code, $key) | |
Get a value. More... | |
set ( $key, $value) | |
Set a key to a given value. More... | |
startWrite ( $code) | |
Start a write transaction. More... | |
Private Attributes | |
array | $batch = [] |
string | $currentLang |
IDatabase | $dbw |
bool | $readOnly = false |
bool | $writesDone = false |
LCStore implementation which uses the standard DB functions to store data.
This will work on any MediaWiki installation.
Definition at line 28 of file LCStoreDB.php.
LCStoreDB::finishWrite | ( | ) |
LCStoreDB::get | ( | $code, | |
$key | |||
) |
Get a value.
string | $code | Language code |
string | $key | Cache key |
Implements LCStore.
Definition at line 41 of file LCStoreDB.php.
References $code, $dbw, $value, DB_REPLICA, unserialize(), and wfGetDB().
LCStoreDB::set | ( | $key, | |
$value | |||
) |
Set a key to a given value.
startWrite() must be called before this is called, and finishWrite() must be called afterwards.
string | $key | |
mixed | $value |
Implements LCStore.
Definition at line 103 of file LCStoreDB.php.
References $currentLang, $value, batch, and serialize().
LCStoreDB::startWrite | ( | $code | ) |
|
private |
Definition at line 37 of file LCStoreDB.php.
|
private |
Definition at line 31 of file LCStoreDB.php.
Referenced by set().
|
private |
Definition at line 35 of file LCStoreDB.php.
Referenced by get().
|
private |
Definition at line 39 of file LCStoreDB.php.
|
private |
Definition at line 33 of file LCStoreDB.php.