Beispiel #1
0
 /**
  * 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);
     }
 }
Beispiel #2
0
 /**
  * Get the cache key prefix.
  *
  * @return string
  */
 public function getPrefix()
 {
     return $this->store->getPrefix();
 }
Beispiel #3
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;
 }