Storage on the database itself. More...
Public Member Functions | |
retrieve (bool $readLatest=false) | |
get (string $key) | |
@inheritDoc | |
store (array $array, array $diff) | |
Public Member Functions inherited from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore | |
getKeys () | |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore | |
serialize ( $data) | |
These are probably slower than serialize and unserialize, but they are more space efficient because we only need strings and arrays. | |
unserialize ( $data) | |
Storage on the database itself.
This is likely to be the slowest backend. However, it scales okay and provides random access. It also doesn't need any special setup, the database table is added with update.php together with other tables, which is the reason this is the default backend. It also works well on multi-server setup without needing for shared file storage.
Definition at line 18 of file DatabaseMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::__construct | ( | ) |
Definition at line 22 of file DatabaseMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::get | ( | string | $key | ) |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 46 of file DatabaseMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::retrieve | ( | bool | $readLatest = false | ) |
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 26 of file DatabaseMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::store | ( | array | $array, |
array | $diff ) |
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 58 of file DatabaseMessageIndex.php.