/** * Create a new cache repository with the given implementation. * * @param \Illuminate\Contracts\Cache\Store $store * @return \Simexis\Cache\Repository */ public function repository(Store $store) { $repository = new Repository($store); if ($this->app->bound('Illuminate\\Contracts\\Events\\Dispatcher')) { $repository->setEventDispatcher($this->app['Illuminate\\Contracts\\Events\\Dispatcher']); } return $repository; }
/** * {@inheritdoc} */ protected function fireCacheEvent($event, $payload) { $payload[] = $this->tags->getNames(); parent::fireCacheEvent($event, $payload); }