/** * Get the cached response for the given widget. * * @param \ZEDx\Widget $widget * * @return \Symfony\Component\HttpFoundation\Response */ public function getCachedResponseFor(Widget $widget) { return $this->cache->get($this->hasher->getHashForWidget($widget)); }
/** * Get the cached response for the given request. * * @param \Illuminate\Http\Request $request * * @return \Symfony\Component\HttpFoundation\Response */ public function getCachedResponseFor(Request $request) { return $this->cache->get($this->hasher->getHashForRequest($request)); }