Storage on CDB files. More...
Public Member Functions | |
retrieve (bool $readLatest=false) | |
getKeys () | |
get (string $key) | |
@inheritDoc | |
store (array $array, array $diff) | |
@inheritDoc | |
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 CDB files.
This is improved version of SerializedMessageIndex. It uses CDB files for storage, which means it provides random access. The CDB files are about double the size of serialized files (~7M for 50000 keys).
Loading the whole index is slower than serialized, but about the same as for database. Suitable for single-server setups where SerializedMessageIndex is too slow for loading the whole index.
Definition at line 21 of file CDBMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\CDBMessageIndex::get | ( | string | $key | ) |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 53 of file CDBMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\CDBMessageIndex::getKeys | ( | ) |
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 40 of file CDBMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\CDBMessageIndex::retrieve | ( | bool | $readLatest = false | ) |
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 26 of file CDBMessageIndex.php.
MediaWiki\Extension\Translate\MessageLoading\CDBMessageIndex::store | ( | array | $array, |
array | $diff ) |
@inheritDoc
Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.
Definition at line 65 of file CDBMessageIndex.php.