/** * Store an item in the cache. * * @param string $key * @param mixed $value * @param \DateTime|int $minutes * @return void */ public function put($key, $value, $minutes) { $minutes = $this->getMinutes($minutes); if (!is_null($minutes)) { $this->store->put($key, $value, $minutes); } }
/** * Get the cache key prefix. * * @return string */ public function getPrefix() { return $this->store->getPrefix(); }
/** * 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; }