MediaWiki REL1_39
|
Track per-module dependency file paths that are expensive to mass compute. More...
Public Member Functions | |
newEntityDependencies (array $paths=[], $asOf=null) | |
remove ( $type, $entities) | |
Delete the currently tracked dependencies for an entity or set of entities. | |
retrieve ( $type, $entity) | |
Get the currently tracked dependencies for an entity. | |
retrieveMulti ( $type, array $entities) | |
Get the currently tracked dependencies for a set of entities. | |
store ( $type, $entity, array $data, $ttl) | |
Set the currently tracked dependencies for an entity. | |
storeMulti ( $type, array $dataByEntity, $ttl) | |
Set the currently tracked dependencies for a set of entities. | |
Track per-module dependency file paths that are expensive to mass compute.
Definition at line 28 of file DependencyStore.php.
Wikimedia\DependencyStore\DependencyStore::newEntityDependencies | ( | array | $paths = [], |
$asOf = null ) |
string[] | $paths | List of dependency paths |
int | null | $asOf | UNIX timestamp or null |
Definition at line 39 of file DependencyStore.php.
Referenced by Wikimedia\DependencyStore\KeyValueDependencyStore\retrieveMulti(), and Wikimedia\DependencyStore\SqlModuleDependencyStore\retrieveMulti().
|
abstract |
Delete the currently tracked dependencies for an entity or set of entities.
string | $type | Entity type |
string | string[] | $entities | Entity name(s) |
Reimplemented in Wikimedia\DependencyStore\KeyValueDependencyStore, and Wikimedia\DependencyStore\SqlModuleDependencyStore.
|
final |
Get the currently tracked dependencies for an entity.
The "paths" field contains a sorted list of unique paths
The "asOf" field reflects the last-modified timestamp of the dependency data itself. It will be null if there is no tracking data available. Note that if empty path lists are never stored (as an optimisation) then it will not be possible to discern whether the result is up-to-date.
string | $type | Entity type |
string | $entity | Entity name |
Definition at line 57 of file DependencyStore.php.
References $type, and Wikimedia\DependencyStore\DependencyStore\retrieveMulti().
|
abstract |
Get the currently tracked dependencies for a set of entities.
string | $type | Entity type |
string[] | $entities | Entity names |
Reimplemented in Wikimedia\DependencyStore\KeyValueDependencyStore, and Wikimedia\DependencyStore\SqlModuleDependencyStore.
Referenced by Wikimedia\DependencyStore\DependencyStore\retrieve().
|
final |
Set the currently tracked dependencies for an entity.
string | $type | Entity type |
string | $entity | Entity name |
array | $data | Map of (paths: paths, asOf: UNIX timestamp or null) |
int | $ttl | New time-to-live in seconds |
Definition at line 79 of file DependencyStore.php.
References $type, and Wikimedia\DependencyStore\DependencyStore\storeMulti().
|
abstract |
Set the currently tracked dependencies for a set of entities.
string | $type | Entity type |
array[] | $dataByEntity | Map of (entity => (paths: paths, asOf: UNIX timestamp or null)) |
int | $ttl | New time-to-live in seconds |
Reimplemented in Wikimedia\DependencyStore\KeyValueDependencyStore, and Wikimedia\DependencyStore\SqlModuleDependencyStore.
Referenced by Wikimedia\DependencyStore\DependencyStore\store().