Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
HashMessageIndex Class Reference

Storage on hash. More...

Inheritance diagram for HashMessageIndex:
MessageIndex

Public Member Functions

 retrieve (bool $readLatest=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

 get ( $key)
 
 store (array $array, array $diff)
 
 clearMessageGroupStats (array $diff)
 Purge stuff when set of keys have changed.
 
- Protected Member Functions inherited from MessageIndex
 lock ()
 
 unlock ()
 
 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
 

Detailed Description

Storage on hash.

For testing.

Since
2015.04

Definition at line 740 of file MessageIndex.php.

Member Function Documentation

◆ clearMessageGroupStats()

HashMessageIndex::clearMessageGroupStats ( array $diff)
protected

Purge stuff when set of keys have changed.

Parameters
array$diff

Reimplemented from MessageIndex.

Definition at line 760 of file MessageIndex.php.

◆ get()

HashMessageIndex::get ( $key)
protected
Parameters
string$key
Returns
mixed

Reimplemented from MessageIndex.

Definition at line 752 of file MessageIndex.php.

◆ retrieve()

HashMessageIndex::retrieve ( bool $readLatest = false)

Reimplemented from MessageIndex.

Definition at line 744 of file MessageIndex.php.

◆ store()

HashMessageIndex::store ( array $array,
array $diff )
protected

Reimplemented from MessageIndex.

Definition at line 756 of file MessageIndex.php.

Member Data Documentation

◆ $index

HashMessageIndex::$index = []
protected

Definition at line 742 of file MessageIndex.php.


The documentation for this class was generated from the following file: