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