自增 - 增幅为指定值

@param string $key key
@param int $increment 增量
@return mixed
340902
public function incrBy($key, $increment) {
        return $this->getHandler($this->judge(__FUNCTION__))->incrBy($key, $increment);
    }
448444
protected function incrementKey($initial = 1)
    {
        $result = $this->database->openBucket($this->table)
            ->counter($this->identifier(), $initial, ['initial' => abs($initial)]);

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

            return $value;
        }
    }
339393
public function decrement($key, $value = 1)
    {
        $decrement = 0;
        if ($integer = $this->get($key)) {
            $decrement = $integer - $value;
            if ($decrement <= 0) {
                $decrement = 0;
            }
            $this->put($key, $decrement, 0);

            return $decrement;
        }

        $this->put($key, $decrement, 0);

        return $decrement;
    }
375227
public function increment(\Closure $incrementer, $returnKey)
    {
        $config = $incrementer($this->config->getRoot());

        $this->config->update($config);

        return array_get($config, $returnKey);
    }
956274
public function incr($key)
    {
        if ($this->isMappedKey($key)) {
            return false;
        }
        return $this->getDriver()->incr($key);
    }
748930
public static function incr(string $key)
    {
        $currentValue = self::get($key);

        return self::set($key, (int)$currentValue + 1);
    }
1079328
function addCount($key, $expire = 86400, $incrby = 1)
    {
        $key = self::PREFIX.$key;
        //增加计数
        if ($this->redis->exists($key))
        {
            return $this->redis->incr($key, $incrby);
        }
        //不存在的Key，设置为1
        else
        {
            return $this->redis->set($key, $incrby, $expire);
        }
    }
67124
public int getAndIncrement (K key, int defaultValue, int increment) {
		int hashCode = key.hashCode();
		int index = hashCode & mask;
		if (!key.equals(keyTable[index])) {
			index = hash2(hashCode);
			if (!key.equals(keyTable[index])) {
				index = hash3(hashCode);
				if (!key.equals(keyTable[index])) return getAndIncrementStash(key, defaultValue, increment);
			}
		}
		int value = valueTable[index];
		valueTable[index] = value + increment;
		return value;
	}
945164
public function increment($key, $value = 1)
    {
        $val = (int) $this->get($key) + $value;
        return $this->put($key, $val) ? $val : false;
    }
1227663
public function incrbyfloat($key, $increment = 1)
    {
        $this->init();
        return $this->driver->incrbyfloat($key, $increment);
    }
86853
public function increment($key, $step)
    {
        $value = $this->getValueByKey($key, false);
        $this->alter($key, $value + $step);
    }
119230
public function increment($key, $value = 1)
    {
        return $this->connection()->incrBy($this->prefix . $key, $value);
    }
1088935
public function hIncrByFloat($key, $field, $increment) {
        return $this->send(['hincrbyfloat', $key, $field, $increment], function ($response) {
            return (float) $response;
        });
    }
880296
public function indent($increment = null)
    {
        if (null !== $increment) {
            $this->indent += $increment;
            if ($this->indent < 0) {
                throw new \InvalidArgumentException("Indent can not reach below zero!");
            }
        } else {
            $this->raw(str_repeat('    ', $this->indent));
        }
        return $this;
    }
45590
public function increment(string $key, int $step = 1): int {
		return $this->driver->increment($key, abs($step));
	}
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);
    }