예제 #1
0
 /**
  * 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);
 }