MediaWiki REL1_39
|
LCStore implementation which uses the standard DB functions to store data. More...
Public Member Functions | |
__construct ( $params) | |
finishWrite () | |
Finish a write transaction. | |
get ( $code, $key) | |
Get a value. | |
set ( $key, $value) | |
Set a key to a given value. | |
startWrite ( $code) | |
Start a write transaction. | |
LCStore implementation which uses the standard DB functions to store data.
Definition at line 31 of file LCStoreDB.php.
LCStoreDB::__construct | ( | $params | ) |
Definition at line 47 of file LCStoreDB.php.
LCStoreDB::finishWrite | ( | ) |
Finish a write transaction.
Implements LCStore.
Definition at line 85 of file LCStoreDB.php.
References Wikimedia\Rdbms\IDatabase\delete(), Wikimedia\Rdbms\IDatabase\endAtomic(), Wikimedia\Rdbms\IDatabase\insert(), Wikimedia\Rdbms\IDatabase\startAtomic(), and Wikimedia\Rdbms\IDatabase\wasReadOnlyError().
LCStoreDB::get | ( | $code, | |
$key ) |
Get a value.
string | $code | Language code |
string | $key | Cache key |
Implements LCStore.
Definition at line 51 of file LCStoreDB.php.
References 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 115 of file LCStoreDB.php.
References Wikimedia\Rdbms\IDatabase\encodeBlob(), and serialize().
LCStoreDB::startWrite | ( | $code | ) |
Start a write transaction.
string | $code | Language code |
Implements LCStore.
Definition at line 71 of file LCStoreDB.php.
References Wikimedia\Rdbms\IDatabase\isReadOnly().