Пример #1
0
 /**
  * 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));
 }
Пример #2
0
 /**
  * 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));
 }