public function LaravelCacheStoreAdapter::increment in Markdown 8.2
File
- src/
Util/ LaravelCacheStoreAdapter.php, line 90
Class
- LaravelCacheStoreAdapter
- Adapter for integrating Drupal cache with Laravel.
Namespace
Drupal\markdown\UtilCode
public function increment($key, $value = 1) {
$key = $this
->prefixKey($key);
$value = $this->cache
->get($key) + $value;
$this->cache
->set($key, $value);
return $value;
}