|
MediaWiki master
|
Inherits MediaWiki\Edit\ParsoidOutputStash.

Public Member Functions | |
| __construct (private JsonCodec $jsonCodec, private BagOStuff $bagOfStuff, private int $duration,) | |
| get (ParsoidRenderID $renderId) | |
| This will decode the JSON data and create a page bundle from it if we have something in the stash that matches a given rendering or will just return an empty array if no entry in the stash. | |
| set (ParsoidRenderID $renderId, SelserContext $selserContext) | |
| Before we stash, we serialize & encode into JSON the relevant parts of the data we need to construct a page bundle in the future. | |
| MediaWiki\Edit\SimpleParsoidOutputStash::__construct | ( | private JsonCodec | $jsonCodec, |
| private BagOStuff | $bagOfStuff, | ||
| private int | $duration ) |
| $bagOfStuff | Storage backend |
| $duration | Cache duration in seconds |
Definition at line 14 of file SimpleParsoidOutputStash.php.
| MediaWiki\Edit\SimpleParsoidOutputStash::get | ( | ParsoidRenderID | $renderId | ) |
This will decode the JSON data and create a page bundle from it if we have something in the stash that matches a given rendering or will just return an empty array if no entry in the stash.
| ParsoidRenderID | $renderId |
Implements MediaWiki\Edit\ParsoidOutputStash.
Definition at line 53 of file SimpleParsoidOutputStash.php.
| MediaWiki\Edit\SimpleParsoidOutputStash::set | ( | ParsoidRenderID | $renderId, |
| SelserContext | $selserContext ) |
Before we stash, we serialize & encode into JSON the relevant parts of the data we need to construct a page bundle in the future.
| ParsoidRenderID | $renderId | Combination of revision ID and revision's time ID |
| SelserContext | $selserContext |
Implements MediaWiki\Edit\ParsoidOutputStash.
Definition at line 36 of file SimpleParsoidOutputStash.php.