/** * 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); }
/** * @param string $key * * @throws \BadMethodCallException */ private function cacheForget(string $key) { $this->cache->tags(self::KEY_PREFIX)->forget($this->key($key)); }
/** * Clear the cache for this Repositories' Entity * @return bool */ public function clearCache() { return $this->cache->tags($this->entityName)->flush(); }
/** * Destroy a resource * * @param $model * @return mixed */ public function destroy($model) { $this->cache->tags($this->entityName)->flush(); return $this->repository->destroy($model); }