setCache() 공개 메소드

Set the cache instance.
public setCache ( Illuminate\Contracts\Cache\Store $cache )
$cache Illuminate\Contracts\Cache\Store
예제 #1
0
 /**
  * Use the given cache instance.
  *
  * @param  \Illuminate\Contracts\Cache\Store  $cache
  * @return $this
  */
 public function cache(Store $cache = null)
 {
     $cache = $cache ?: $this->make(CacheRepository::class)->getStore();
     $this->clipboard->setCache($cache);
     return $this;
 }
예제 #2
0
파일: Bouncer.php 프로젝트: jmadden/bouncer
 /**
  * Use the given cache instance.
  *
  * @param  \Illuminate\Contracts\Cache\Store  $cache
  * @return $this
  */
 public function cache(Store $cache = null)
 {
     $cache = $cache ?: Container::getInstance()->make(Store::class);
     $this->clipboard->setCache($cache);
     return $this;
 }