Storage on the object cache. More...
Public Member Functions | |
retrieve ( $forRebuild=false) | |
![]() | |
getKeys () | |
rebuild (float $timestamp=null) | |
Creates the index from scratch. | |
getStatusCacheKey () | |
storeInterim (MessageGroup $group, array $newKeys) | |
Protected Member Functions | |
store (array $array, array $diff) | |
![]() | |
get ( $key) | |
Looks up the stored value for single key. | |
lock () | |
unlock () | |
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 | |
$key = 'translate-messageindex' | |
$cache | |
$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 object cache.
This can be faster than DatabaseMessageIndex, but it doesn't provide random access, and the data is not guaranteed to be persistent.
This is unlikely to be the best backend for you, so don't use it.
Definition at line 619 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 625 of file MessageIndex.php.
CachedMessageIndex::retrieve | ( | $forRebuild = false | ) |
bool | $forRebuild |
Reimplemented from MessageIndex.
Definition at line 634 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 650 of file MessageIndex.php.
|
protected |
Definition at line 621 of file MessageIndex.php.
|
protected |
Definition at line 623 of file MessageIndex.php.
|
protected |
Definition at line 620 of file MessageIndex.php.