/** * 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; }
/** * 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); }
/** * @param $key * @param $value * @param null $expiresAt */ public function put($key, $value, $expiresAt = null) { $this->cache->forever($this->key($key), $value); }
/** * Reset the section, returning a new section identifier * * @return string */ protected function reset() { $this->store->forever($this->sectionKey(), $id = uniqid()); return $id; }
/** * 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; }
/** * 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]); }