Ejemplo n.º 1
0
 /**
  * Store an item in the cache indefinitely.
  *
  * @param  string  $key
  * @param  mixed   $value
  * @return void
  */
 public function forever($key, $value)
 {
     $this->store->forever($this->taggedItemKey($key), $value);
 }
Ejemplo n.º 2
0
 /**
  * Reset the tag and return the new tag identifier
  *
  * @param  string  $name
  * @return string
  */
 public function resetTag($name)
 {
     $this->store->forever($this->tagKey($name), $id = str_replace('.', '', uniqid('', true)));
     return $id;
 }