MediaWiki
1.28.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 25 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 38 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 100 of file LCStoreDB.php.
References $currentLang, $value, batch, and serialize().
LCStoreDB::startWrite | ( | $code | ) |
|
private |
Definition at line 34 of file LCStoreDB.php.
|
private |
Definition at line 28 of file LCStoreDB.php.
Referenced by set().
|
private |
Definition at line 32 of file LCStoreDB.php.
Referenced by get().
|
private |
Definition at line 36 of file LCStoreDB.php.
|
private |
Definition at line 30 of file LCStoreDB.php.