/** * Increment a key in the cache. * * @param string $key * * @return void */ protected function increment($key) { $this->cache->increment($this->key($key)); }
/** * 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); }