Storage on the database itself. More...
Public Member Functions | |
retrieve (bool $readLatest=false) | |
![]() | |
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) | |
![]() | |
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 | |
![]() | |
$interimCache | |
Additional Inherited Members | |
![]() | |
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 | $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 498 of file MessageIndex.php.
|
protected |
Looks up the stored value for single key.
Only for testing.
string | $key |
Reimplemented from MessageIndex.
Definition at line 549 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 502 of file MessageIndex.php.
DatabaseMessageIndex::retrieve | ( | bool | $readLatest = false | ) |
Reimplemented from MessageIndex.
Definition at line 534 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 561 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 515 of file MessageIndex.php.
|
protected |
Definition at line 500 of file MessageIndex.php.