MediaWiki
master
|
Public Member Functions | |
__construct (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. More... | |
set (ParsoidRenderId $renderId, PageBundle $bundle) | |
Before we stash, we serialize & encode into JSON the relevant parts of the data we need to construct a page bundle in the future. More... | |
![]() | |
get (ParsoidRenderID $renderId) | |
Retrieve a page bundle (that was previously put in the stash using the ->set() method) from the stash using a unique render ID. More... | |
set (ParsoidRenderID $renderId, PageBundle $bundle) | |
Stash a PageBundle representing a rendering of a revision at a given point in time. More... | |
Definition at line 15 of file SimpleParsoidOutputStash.php.
MediaWiki\Edit\SimpleParsoidOutputStash::__construct | ( | BagOStuff | $bagOfStuff, |
int | $duration | ||
) |
BagOStuff | $bagOfStuff | storage backend |
int | $duration | cache duration in seconds |
Definition at line 28 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 |
Definition at line 57 of file SimpleParsoidOutputStash.php.
References FormatJson\decode().
MediaWiki\Edit\SimpleParsoidOutputStash::set | ( | ParsoidRenderId | $renderId, |
PageBundle | $bundle | ||
) |
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 | |
PageBundle | $bundle |
Definition at line 42 of file SimpleParsoidOutputStash.php.
References FormatJson\encode().