Storage on the database itself. More...
Public Member Functions | |
retrieve ( $forRebuild=false) | |
Public Member Functions inherited from MessageIndex | |
getKeys () | |
rebuild (float $timestamp=null) | |
Creates the index from scratch. | |
getStatusCacheKey () | |
storeInterim (MessageGroup $group, array $newKeys) | |
Protected Member Functions | |
lock () | |
unlock () | |
get ( $key) | |
Looks up the stored value for single key. | |
store (array $array, array $diff) | |
Protected Member Functions inherited from MessageIndex | |
clearMessageGroupStats (array $diff) | |
Purge stuff when set of keys have changed. | |
checkAndAdd (&$hugearray, MessageGroup $g, $ignore=false) | |
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) | |
Protected Attributes | |
$index | |
Protected Attributes inherited from MessageIndex | |
$interimCache | |
Additional Inherited Members | |
Static Public Member Functions inherited from MessageIndex | |
static | singleton () |
static | setInstance (self $instance) |
Override the global instance, for testing. | |
static | getGroupIds (MessageHandle $handle) |
Retrieves a list of groups given MessageHandle belongs to. | |
static | getPrimaryGroupId (MessageHandle $handle) |
static | getArrayDiff (array $old, array $new) |
Compares two associative arrays. | |
Static Protected Attributes inherited from MessageIndex | |
static | $instance |
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 505 of file MessageIndex.php.
|
protected |
Looks up the stored value for single key.
Only for testing.
string | $key |
Reimplemented from MessageIndex.
Definition at line 560 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 509 of file MessageIndex.php.
DatabaseMessageIndex::retrieve | ( | $forRebuild = false | ) |
bool | $forRebuild |
Reimplemented from MessageIndex.
Definition at line 545 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 578 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 522 of file MessageIndex.php.
|
protected |
Definition at line 507 of file MessageIndex.php.