MediaWiki REL1_40
|
The narrow interface WRStats needs into a memcached-like key-value store. More...
Inherited by Wikimedia\WRStats\ArrayStatsStore, and Wikimedia\WRStats\BagOStuffStatsStore.
Public Member Functions | |
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. | |
The narrow interface WRStats needs into a memcached-like key-value store.
Definition at line 10 of file StatsStore.php.
Wikimedia\WRStats\StatsStore::delete | ( | array | $keys | ) |
Perform a batch of delete operations.
string[] | $keys | Keys to delete; strings returned by makeKey() |
Implemented in Wikimedia\WRStats\ArrayStatsStore, and Wikimedia\WRStats\BagOStuffStatsStore.
Wikimedia\WRStats\StatsStore::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. |
Implemented in Wikimedia\WRStats\ArrayStatsStore, and Wikimedia\WRStats\BagOStuffStatsStore.
Wikimedia\WRStats\StatsStore::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. |
Implemented in Wikimedia\WRStats\ArrayStatsStore, and Wikimedia\WRStats\BagOStuffStatsStore.
Wikimedia\WRStats\StatsStore::query | ( | array | $keys | ) |
Perform a batch of fetch operations.
string[] | $keys | Keys to get; strings returned by makeKey() |
Implemented in Wikimedia\WRStats\ArrayStatsStore, and Wikimedia\WRStats\BagOStuffStatsStore.