src/Psr16Manager.php
public function indecrement(string $key, $step = 1)
    {
        $value = $this->get($key, 0);

        $value += $step;

        $this->set($key, $value);

        return $value;
    }
public function indecrement(string $key, $step = 1)
    {
        $value = $this->get($key, 0);

        $value += $step;

        $this->set($key, $value);

        return $value;
    }
Increment/Decrement the value of an item in the cache.

@param string $key  键
@param mixed  $step 改变量

@return int|bool