コード例 #1
0
ファイル: Handler.php プロジェクト: joselfonseca/api
 /**
  * Increment a key in the cache.
  *
  * @param string $key
  *
  * @return void
  */
 protected function increment($key)
 {
     $this->cache->increment($this->key($key));
 }
コード例 #2
0
 /**
  * Increment the value of an item in the cache.
  *
  * @param string $key
  * @param mixed  $value
  * 
  * @return int
  */
 public function increment($key, $value = 1)
 {
     return $this->cache->increment($this->prefix . $key, $value);
 }