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