src/LinguaLeo/Cache/Provider/HotCache.php
public function increment($key, $value = 1)
    {
        if ($value < 1) {
            throw new \InvalidArgumentException('Value of incrementation must be greater that nil.');
        }

        if (isset($this->cache[$key])) {
            $this->cache[$key] += $value;
        } else {
            $this->cache[$key] = $value;
        }

        return true;
    }
public function increment($key, $value = 1)
    {
        if ($value < 1) {
            throw new \InvalidArgumentException('Value of incrementation must be greater that nil.');
        }

        if (isset($this->cache[$key])) {
            $this->cache[$key] += $value;
        } else {
            $this->cache[$key] = $value;
        }

        return true;
    }
{@inheritdoc}