Ejemplo n.º 1
0
 /**
  * Begin executing a new tags operation if the store supports it.
  *
  * @param array|mixed $names
  * @return \Illuminate\Cache\TaggedCache 
  * @throws \BadMethodCallException
  * @static 
  */
 public static function tags($names)
 {
     return \Illuminate\Cache\Repository::tags($names);
 }
Ejemplo n.º 2
0
 /**
  * @param string $key
  *
  * @throws \BadMethodCallException
  */
 private function cacheForget(string $key)
 {
     $this->cache->tags(self::KEY_PREFIX)->forget($this->key($key));
 }
Ejemplo n.º 3
0
 /**
  * Clear the cache for this Repositories' Entity
  * @return bool
  */
 public function clearCache()
 {
     return $this->cache->tags($this->entityName)->flush();
 }
Ejemplo n.º 4
0
 /**
  * Destroy a resource
  *
  * @param $model
  * @return mixed
  */
 public function destroy($model)
 {
     $this->cache->tags($this->entityName)->flush();
     return $this->repository->destroy($model);
 }