MediaWiki REL1_40
|
Inherits MediaWiki\Edit\ParsoidOutputStash.
Public Member Functions | |
__construct (IContentHandlerFactory $contentHandlerFactory, BagOStuff $bagOfStuff, 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 | ( | IContentHandlerFactory | $contentHandlerFactory, |
BagOStuff | $bagOfStuff, | ||
int | $duration ) |
IContentHandlerFactory | $contentHandlerFactory | |
BagOStuff | $bagOfStuff | storage backend |
int | $duration | cache duration in seconds |
Definition at line 31 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 66 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 50 of file SimpleParsoidOutputStash.php.