Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2753731
StatsStore.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
StatsStore.php
View Options
<?php
namespace
Wikimedia\WRStats
;
/**
* Narrow interface for WRStatsFactory to a memcached-like key-value store.
*
* @since 1.39
*/
interface
StatsStore
{
/**
* Construct a string key from its components
*
* @param string[] $prefix The prefix components.
* @param array<string|int> $internals The internal components.
* @param EntityKey $entity The entity components. If $entity->isGlobal()
* is true, the key as a whole should be treated as global.
* @return string
*/
public
function
makeKey
(
$prefix
,
$internals
,
$entity
);
/**
* Perform a batch of increment operations.
*
* @param int[] $values The deltas to add, indexed by the key as returned by makeKey()
* @param 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.
*/
public
function
incr
(
array
$values
,
$ttl
);
/**
* Perform a batch of delete operations.
*
* @param string[] $keys Keys to delete; strings returned by makeKey()
*/
public
function
delete
(
array
$keys
);
/**
* Perform a batch of fetch operations.
*
* @param string[] $keys Keys to get; strings returned by makeKey()
* @return int[] Integers
*/
public
function
query
(
array
$keys
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 21:39 (18 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bf/f4/7dbbb424462999a962652d8ba570
Default Alt Text
StatsStore.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment