public function postRender(Event $event)
    {
        $markdown = $event->getParam('markdown');
        $renderedMarkdown = $event->getParam('renderedMarkdown');

        $markdownHash = md5($markdown);

        return $this->cache->setItem($markdownHash, $renderedMarkdown);
    }
public function postRender(Event $event)
    {
        $markdown = $event->getParam('markdown');
        $renderedMarkdown = $event->getParam('renderedMarkdown');

        $markdownHash = md5($markdown);

        return $this->cache->setItem($markdownHash, $renderedMarkdown);
    }
public function postRender ( Event $ event ) { $ markdown = $ event -> getParam ( 'markdown' ) ; $ renderedMarkdown = $ event -> getParam ( 'renderedMarkdown' ) ; $ markdownHash = md5 ( $ markdown ) ; return $ this -> cache -> setItem ( $ markdownHash , $ renderedMarkdown ) ; }
Saves the rendered markdown within the cache.

@param \Zend\EventManager\Event $event
@return mixed
@throws \Zend\Cache\Exception\ExceptionInterface
Saves the rendered markdown within the cache .