Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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.º 3
0
 /**
  * @param      $key
  * @param      $value
  * @param null $expiresAt
  */
 public function put($key, $value, $expiresAt = null)
 {
     $this->cache->forever($this->key($key), $value);
 }
Ejemplo n.º 4
0
 /**
  * Reset the section, returning a new section identifier
  *
  * @return string
  */
 protected function reset()
 {
     $this->store->forever($this->sectionKey(), $id = uniqid());
     return $id;
 }
Ejemplo n.º 5
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 = uniqid());
     return $id;
 }
Ejemplo n.º 6
0
 /**
  * Store an item in the cache indefinitely.
  *
  * @param  string  $key
  * @param  mixed   $value
  * @return void
  */
 public function forever($key, $value)
 {
     $this->store->forever($key, $value);
     $this->fireCacheEvent('write', [$key, $value, 0]);
 }