MediaWiki REL1_41
|
LCStore implementation which uses the standard DB functions to store data. More...
Inherits LCStore.
Public Member Functions | |
__construct ( $params) | |
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. | |
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 cache write transaction.
Implements LCStore.
Definition at line 84 of file LCStoreDB.php.
References Wikimedia\Rdbms\IDatabase\endAtomic(), Profiler\instance(), Wikimedia\Rdbms\IDatabase\newDeleteQueryBuilder(), Wikimedia\Rdbms\IDatabase\newInsertQueryBuilder(), Wikimedia\Rdbms\IDatabase\startAtomic(), and Wikimedia\Rdbms\IReadableDatabase\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, 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 after.
string | $key | |
mixed | $value |
Implements LCStore.
Definition at line 120 of file LCStoreDB.php.
References Wikimedia\Rdbms\IReadableDatabase\encodeBlob().
LCStoreDB::startWrite | ( | $code | ) |
Start a cache write transaction.
string | $code | Language code |
Implements LCStore.
Definition at line 70 of file LCStoreDB.php.
References Wikimedia\Rdbms\IDatabase\isReadOnly().