MediaWiki master
|
In-memory stats store. More...
Inherits Wikimedia\WRStats\StatsStore.
Public Member Functions | |
delete (array $keys) | |
Perform a batch of delete operations. | |
getData () | |
incr (array $values, $ttl) | |
Perform a batch of increment operations. | |
makeKey ( $prefix, $internals, $entity) | |
Construct a string key from its components. | |
query (array $keys) | |
Perform a batch of fetch operations. | |
In-memory stats store.
Definition at line 8 of file ArrayStatsStore.php.
Wikimedia\WRStats\ArrayStatsStore::delete | ( | array | $keys | ) |
Perform a batch of delete operations.
string[] | $keys | Keys to delete; strings returned by makeKey() |
Implements Wikimedia\WRStats\StatsStore.
Definition at line 31 of file ArrayStatsStore.php.
Wikimedia\WRStats\ArrayStatsStore::getData | ( | ) |
Definition at line 50 of file ArrayStatsStore.php.
Wikimedia\WRStats\ArrayStatsStore::incr | ( | array | $values, |
$ttl ) |
Perform a batch of increment operations.
int[] | $values | The deltas to add, indexed by the key as returned by makeKey() |
int | $ttl | The expiry time of any new entries, in seconds. This is a hint, allowing the storage layer to control space usage. Implementing expiry is not a requirement. |
Implements Wikimedia\WRStats\StatsStore.
Definition at line 22 of file ArrayStatsStore.php.
Wikimedia\WRStats\ArrayStatsStore::makeKey | ( | $prefix, | |
$internals, | |||
$entity ) |
Construct a string key from its components.
string[] | $prefix | The prefix components. |
array<string|int> | $internals The internal components. | |
EntityKey | $entity | The entity components. If $entity->isGlobal() is true, the key as a whole should be treated as global. |
Implements Wikimedia\WRStats\StatsStore.
Definition at line 15 of file ArrayStatsStore.php.
Wikimedia\WRStats\ArrayStatsStore::query | ( | array | $keys | ) |
Perform a batch of fetch operations.
string[] | $keys | Keys to get; strings returned by makeKey() |
Implements Wikimedia\WRStats\StatsStore.
Definition at line 37 of file ArrayStatsStore.php.