MediaWiki REL1_39
|
An adaptor allowing WRStats to store data in MediaWiki's BagOStuff. More...
Public Member Functions | ||||||||||
__construct (BagOStuff $cache) | ||||||||||
delete (array $keys) | ||||||||||
Perform a batch of delete operations. | ||||||||||
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. | ||||||||||
An adaptor allowing WRStats to store data in MediaWiki's BagOStuff.
Definition at line 13 of file BagOStuffStatsStore.php.
Wikimedia\WRStats\BagOStuffStatsStore::__construct | ( | BagOStuff | $cache | ) |
BagOStuff | $cache |
Definition at line 20 of file BagOStuffStatsStore.php.
References $cache.
Wikimedia\WRStats\BagOStuffStatsStore::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 50 of file BagOStuffStatsStore.php.
References $keys.
Wikimedia\WRStats\BagOStuffStatsStore::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 38 of file BagOStuffStatsStore.php.
Wikimedia\WRStats\BagOStuffStatsStore::makeKey | ( | $prefix, | |
$internals, | |||
$entity ) |
Construct a string key from its components.
array | $prefix | The prefix components. |
array | $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 28 of file BagOStuffStatsStore.php.
Wikimedia\WRStats\BagOStuffStatsStore::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 54 of file BagOStuffStatsStore.php.
References $keys.