public function save(MvcEvent $e)
{
if (!$this->shouldCacheRequest($e)) {
return;
}
$id = $this->createId($e->getRequest());
$item = serialize($e->getResponse());
$this->cacheStorage->setItem($id, $item);
$this->getEventManager()->trigger(new CacheEvent(CacheEvent::EVENT_SAVE, $this));
}