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