Increment a value in the cache store

@param string $key  Cache key associated to the data
@param int    $step Number to increment by
@return int New value on success or FALSE on failure

@throws CacheException
499336
public function increment($key, $step = 1)
    {
        if (!$this->enabled)
            return false;

        $has_replaced = $has_set = false;
        try {
            // Store the cache object
            $nKey = $this->key($key);
            $has_replaced = @$this->getConnection()->add($nKey, $step, 0);
            if (!$has_replaced) {
                $has_set = @$this->getConnection()->increment($nKey, $step);
            }

        } catch (Exception $e) {
            throw new CacheException($e->getMessage(), $e->getCode());
        }

        $this->Logger->debug("". (($has_replaced || $has_set) ? "Successfully" : "Failed to") . " increment key '{$key}'\n");
//        $this->Logger->debug($data);

        return $has_replaced ? $step : $has_set;
    }
709123
public function increment($key, $incvalue = 1) {
        $used_key = $this->getUsedKey($key);
        $val = $this->get($key);
        if ($val === null || !is_numeric($val) || !is_numeric($incvalue)) {
            return false;
        }
        if (intval($val) == $val) {
            return $this->redis->incr($used_key, intval($incvalue));
        }
        else { // float values
            $result = intval($val)+intval($incvalue);
            if($this->redis->set($used_key, $result)) {
                return $result;
            }
            return false;
        }
    }
986466
public function increment($key, $step = 1)
    {
        $connection = $this->getConnection($key);
        $this->writeToRemote(array(
            'cmd' => 'increment',
            'key' => $key,
            'step' => $step,
        ), $connection);
        return $this->readFromRemote($connection);
    }
945164
public function increment($key, $value = 1)
    {
        $val = (int) $this->get($key) + $value;
        return $this->put($key, $val) ? $val : false;
    }
854942
public function inc($key, $step = 1, &$success = null)
	{
		return $this->atomicAdjust($this->getPath($key), $step, $success);
	}
2371
public function increment($key, $steps = 1)
    {
        $previous = $this->has($key) ? $this->get($key) : 0;
        $previous += $steps;
        $this->put($key, $previous);

        return $previous;
    }
784759
public function increment($key, $value = 1)
    {
        $raw = $this->getPayload($key);

        $int = ((int) $raw['data']) + $value;

        $this->put($key, $int, (int) $raw['time']);

        return $int;
    }
1342351
public function incrementByPk($primary_key, $keys, $step = 1)
    {
        if ($this->is_single) {
            return $this->incrementOrDecrementByPk($primary_key, $keys, $step);
        }
        return false;
    }
921475
public function dec($key, $step = 1, &$success = null)
	{
		return $this->atomicAdjust($this->getPath($key), -$step, $success);
	}
1142045
def increment(self, key, value=1):
        
        return self._memcache.incr(self._prefix + key, value)
1111395
public function increment($key, $offset = 1)
    {
        $key = $this->_key($key);

        return wincache_ucache_inc($key, $offset);
    }
474677
public function increment($key, $value = 1)
    {
        if ($this->exists($key)) {
            return self::$redis->incrBy($key, $value);
        } else {
            $this->set($key, $value);

            return $value;
        }
    }
585416
public function decrement($key, $offset = 1)
    {
        if (!$this->read($key)) {
            $this->write($key, 0);
        }
        $key = $this->_key($key);
        $this->data[$key]['val'] -= $offset;

        return $this->data[$key]['val'];
    }
124701
public function increment($table, $column, $step = 1)
    {
        $this->queryBuilder->increment($table, $column, $step);
        return $this;
    }
745281
public function decrementByPk($primary_key, $keys, $step = 1)
    {
        if ($this->is_single) {
            return $this->incrementOrDecrementByPk($primary_key, $keys, $step, self::MINUS_NOTIFICATION);
        }
        return false;
    }
244656
public function increment($key, $value = 1)
    {
        $raw = $this->getPayload($key);

        return tap(
            ((int) $raw['data']) + $value, function ($newValue) use ($key, $raw) {
                $this->put($key, $newValue, $raw['time']);
            }
        );
    }
17905
public function decrement($key, $steps = 1)
    {
        $previous = $this->has($key) ? $this->get($key) : 0;
        $previous -= $steps;
        $this->put($key, $previous);

        return $previous;
    }