Cachearium\Backend\CacheMemcached::increment PHP Method

increment() public method

(non-PHPdoc)
See also: Cachearium\Backend\CacheRAM::increment()
public increment ( $value, CacheKey $k, $default )
$k Cachearium\CacheKey
    public function increment($value, CacheKey $k, $default = 0)
    {
        // @codeCoverageIgnoreStart
        if (!$this->enabled) {
            return $default;
        }
        // @codeCoverageIgnoreEnd
        $group = $this->hashKey($k);
        $this->log(CacheLogEnum::SAVED, $k);
        $x = $this->memcached->increment($group, $value, $default, $this->lifetime);
        parent::store($x, $k, $this->lifetime);
        return $x;
    }