/**
  * Remove all items from the cache.
  *
  * @return void
  */
 public function flush()
 {
     $this->tags->reset();
 }
 /**
  * Get a fully qualified key for a tagged item.
  *
  * @param  string  $key
  * @return string
  */
 public function taggedItemKey($key)
 {
     return sha1($this->tags->getNamespace()) . ':' . $key;
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 protected function fireCacheEvent($event, $payload)
 {
     $payload[] = $this->tags->getNames();
     parent::fireCacheEvent($event, $payload);
 }