src/LinguaLeo/Cache/Provider/MemCache.php
public function increment($key, $value = 1)
    {
        if ($value < 1) {
            throw new \InvalidArgumentException('Value of incrementation must be greater that nil.');
        }
        $result = $this->memcached->increment($key, $value);
        if (false === $result) {
            if (false === $this->add($key, $value)) {
                throw new AtomicViolationException(sprintf('In incremention can\'t add key "%s".', $key));
            }
            $result = $value;
        }
        return $result;
    }
public function increment($key, $value = 1)
    {
        if ($value < 1) {
            throw new \InvalidArgumentException('Value of incrementation must be greater that nil.');
        }
        $result = $this->memcached->increment($key, $value);
        if (false === $result) {
            if (false === $this->add($key, $value)) {
                throw new AtomicViolationException(sprintf('In incremention can\'t add key "%s".', $key));
            }
            $result = $value;
        }
        return $result;
    }
{@inheritdoc}