Storage on CDB files. More...
Public Member Functions | |
retrieve () | |
Protected Member Functions | |
get ($key) | |
Looks up the stored value for single key. | |
store (array $array) | |
getReader () | |
Protected Attributes | |
$index | |
$reader | |
$filename = 'translate_messageindex.cdb' |
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 sloading the whole index.
Definition at line 434 of file MessageIndex.php.
CDBMessageIndex::get | ( | $ | key | ) | [protected] |
Looks up the stored value for single key.
Only for testing.
string | $key |
Reimplemented from MessageIndex.
Reimplemented in TestableCDBMessageIndex.
Definition at line 463 of file MessageIndex.php.
CDBMessageIndex::getReader | ( | ) | [protected] |
Definition at line 506 of file MessageIndex.php.
Referenced by get(), and retrieve().
CDBMessageIndex::retrieve | ( | ) |
Reimplemented from MessageIndex.
Definition at line 445 of file MessageIndex.php.
CDBMessageIndex::store | ( | array $ | array | ) | [protected] |
Reimplemented from MessageIndex.
Reimplemented in TestableCDBMessageIndex.
Definition at line 486 of file MessageIndex.php.
CDBMessageIndex::$filename = 'translate_messageindex.cdb' [protected] |
Definition at line 442 of file MessageIndex.php.
CDBMessageIndex::$index [protected] |
Definition at line 436 of file MessageIndex.php.
CDBMessageIndex::$reader [protected] |
Definition at line 439 of file MessageIndex.php.
Referenced by get(), and retrieve().