示例#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
 /**
  * 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));
 }