Increment a $key's value and return the new value.

@param  string      $key       Key name to increment
@param  int|integer $amount    Amount to increment with (default 1)
@return int|bool
165321
public function inc(string $key, int $amount=1): int
  {
    $success = false;
    $value = apcu_inc( $key, $amount, $success);

    return ( $success ? $value : false );
  }
188538
public function increment($key, $value = 1)
    {
        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
            return $current + $value;
        });
    }
331278
public function incrementMajor($amount = 1)
    {
        $this->major += $amount;
        $this->minor = 0;
        $this->patch = 0;

        return $this;
    }
72083
public function increment($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'];
    }
1253801
public function increment($key, $value = 1)
    {
        return $this->redisServer->getHashClient($key)->incrBy($key, $value);
    }
1075637
public function limit($offset, $amount = null)
    {
        if (is_null($amount)) {
            $this->append(' LIMIT ' . $offset);
        } else {
            $this->append(sprintf(' LIMIT %s, %s', $offset, $amount));
        }

        return $this;
    }
1227663
public function incrbyfloat($key, $increment = 1)
    {
        $this->init();
        return $this->driver->incrbyfloat($key, $increment);
    }
1145567
public function increment(string $key, int $step = 1): int {
		$return_value = 0;
		$success      = $this->lock($key, function($handle) use ($step, &$return_value) {
			$value      = $this->getWithLock($handle);
			$new_value  = (int)$value + $step; // (int)false === 0
			$expire     = $this->ttlWithLock($handle);
			$new_expire = ($expire === -2) ? -1 : $expire;
			if ($this->setWithLock($handle, (string)$new_value, $new_expire)) {
				$return_value = $new_value;
			}
		});
		if ($success) {
			return $return_value;
		}
		else
			throw new Exception('Manager Increment Error!');
	}
526243
public function increment(string $column, int $amount = 1): self
    {
        $this->values[$column] = new RawExp($this->quoter->quoteName($column) . '+' . $this->quoter->quoteValue($amount));

        return $this;
    }
219566
public function getAmount($amount)
    {
        if (!is_float($amount) &&
            $this->getCurrencyDecimalPlaces() > 0 &&
            false === strpos((string) $amount, '.')) {
            throw new InvalidArgumentException(
                'Please specify amount as a string or float, '.
                'with decimal places (e.g. \'10.00\' to represent $10.00).'
            );
        }

        return $this->formatCurrency($amount);
    }
702333
public function increment($key, $offset = 1)
    {
        return $this->memcached ? $this->memcached->increment($key, $offset) : false;
    }
224669
public function increment($key, $offset=1, $initial_value=0, $expiry=0) {
		return $this->cache->increment($this->prefix.$key, $offset, $initial_value, $expiry);
	}
119230
public function increment($key, $value = 1)
    {
        return $this->connection()->incrBy($this->prefix . $key, $value);
    }
31332
public int increment (int key, int amount)
    {
        Record rec = locateRecord(key);
        if (rec == null) {
            put(key, amount);
            return amount;
        } else {
            return (rec.value += amount);
        }
    }
270379
public function increment(string $column, int $amount = 1, array $extra = []): int
    {
        $rows = $this->queryRelate->getQuery()->increment($column, $amount, $extra);
        $this->resetQueryRelate();

        return $rows;
    }
937718
def increment(self, amount=1):
        
        self.__lock.acquire()
        self.__count += amount
        v = self.value()
        self.__lock.release()
        return v
1151945
public function setAmount($amount)
    {
        if ($amount === null) {
            $this->amount = 0;
            return $this;
        }
        
        if (!is_int($amount)) {
            throw new InvalidArgumentException(sprintf(
                'Amount must be an integer, "%s" given',
                is_object($amount) ? get_class($amount) : gettype($amount)
            ));
        }
        
        // Overflow check is not necessary because we have an integer
        $this->amount = $amount;
        return $this;
    }