MediaWiki  master
ParserCacheMetadata.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Parser;
4 
9 interface ParserCacheMetadata {
10 
18  public function getCacheTime();
19 
23  public function getCacheRevisionId(): ?int;
24 
35  public function getCacheExpiry(): int;
36 
43  public function getUsedOptions(): array;
44 }
Read-only interface for metadata about a ParserCache entry.
getCacheExpiry()
Returns the number of seconds after which this object should expire.
getUsedOptions()
Returns the options from its ParserOptions which have been taken into account to produce the output.
getCacheTime()
Returns the timestamp when the output was cached or -1 for uncacheable for legacy reasons.