Storage on the object cache. 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 | |
store (array $array, array $diff) | |
Protected Member Functions inherited from MessageIndex | |
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 | |
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 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.