Microweber\Utils\Adapters\Cache\Storage\FileStorage::decrement PHP Method

decrement() public method

Increment the value of an item in the cache.
public decrement ( string $key, mixed $value = 1 )
$key string
$value mixed
    public function decrement($key, $value = 1)
    {
        $key = $this->appendLocale($key);
        throw new \LogicException('Not supported by this driver.');
    }

Usage Example

Example #1
0
 /**
  * Increment the value of an item in the cache.
  *
  * @param  string $key
  * @param  mixed  $value
  *
  * @return void
  *
  * @throws \LogicException
  */
 public function decrement($key, $value = 1)
 {
     return $this->adapter->decrement($key, $value);
 }