Storage on the object cache. 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 | |
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 602 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 608 of file MessageIndex.php.
CachedMessageIndex::retrieve | ( | bool | $readLatest = false | ) |
Reimplemented from MessageIndex.
Definition at line 613 of file MessageIndex.php.
|
protected |
Reimplemented from MessageIndex.
Definition at line 629 of file MessageIndex.php.
|
protected |
Definition at line 604 of file MessageIndex.php.
|
protected |
Definition at line 606 of file MessageIndex.php.
|
protected |
Definition at line 603 of file MessageIndex.php.