예제 #1
0
파일: WidgetCache.php 프로젝트: zedx/core
 /**
  * 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
파일: ResponseCache.php 프로젝트: zedx/core
 /**
  * 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));
 }