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 }
Parser\ParserCacheMetadata\getCacheTime
getCacheTime()
Returns the timestamp when the output was cached or -1 for uncacheable for legacy reasons.
MediaWiki\Parser
Definition: ParserCacheFactory.php:22
Parser\ParserCacheMetadata\getCacheExpiry
getCacheExpiry()
Returns the number of seconds after which this object should expire.
Parser\ParserCacheMetadata\getUsedOptions
getUsedOptions()
Returns the options from its ParserOptions which have been taken into account to produce the output.
Parser\ParserCacheMetadata\getCacheRevisionId
getCacheRevisionId()
Parser\ParserCacheMetadata
Read-only interface for metadata about a ParserCache entry.
Definition: ParserCacheMetadata.php:9