public function onPrerenderPre(PrerenderEvent $events) 
    {
        $cache = $this->getServiceLocator()->get($this->moduleOptions->getCacheKey());

        return $cache->getItem($this->getCacheEntryKey($events->getRequest()));
    }
public function onPrerenderPre(PrerenderEvent $events) 
    {
        $cache = $this->getServiceLocator()->get($this->moduleOptions->getCacheKey());

        return $cache->getItem($this->getCacheEntryKey($events->getRequest()));
    }
public function onPrerenderPre ( PrerenderEvent $ events ) { $ cache = $ this -> getServiceLocator ( ) -> get ( $ this -> moduleOptions -> getCacheKey ( ) ) ; return $ cache -> getItem ( $ this -> getCacheEntryKey ( $ events -> getRequest ( ) ) ) ; }
Creating a response from cache if found

@param EventManagerInterface $events
Creating a response from cache if found