コード例 #1
0
ファイル: TagSet.php プロジェクト: rodrigopbel/ong
 /**
  * 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;
 }
コード例 #2
0
ファイル: TaggedCache.php プロジェクト: mawaha/tracker
 /**
  * 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);
 }
コード例 #3
0
ファイル: Cache.php プロジェクト: hscale/fizl-pages
 /**
  * @param      $key
  * @param      $value
  * @param null $expiresAt
  */
 public function put($key, $value, $expiresAt = null)
 {
     $this->cache->forever($this->key($key), $value);
 }
コード例 #4
0
ファイル: Section.php プロジェクト: Thomvh/turbine
 /**
  * Reset the section, returning a new section identifier
  *
  * @return string
  */
 protected function reset()
 {
     $this->store->forever($this->sectionKey(), $id = uniqid());
     return $id;
 }
コード例 #5
0
ファイル: TagSet.php プロジェクト: yashb/generator
 /**
  * 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;
 }
コード例 #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]);
 }