|
MediaWiki master
|
An adaptor allowing WRStats to store data in MediaWiki's BagOStuff. More...
Inherits Wikimedia\WRStats\StatsStore.

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 | ) |
Definition at line 17 of file BagOStuffStatsStore.php.
| 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 48 of file BagOStuffStatsStore.php.
| 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 36 of file BagOStuffStatsStore.php.
| Wikimedia\WRStats\BagOStuffStatsStore::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 25 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 53 of file BagOStuffStatsStore.php.