为哈希表中的键的值加上增量increment。增量也可以为负数，相当于对给定域进行减法操作。
@param $key string 键名
@param $diff int|float
@return float|int 更新之后的值
557699
public function increase(string $key, $diff = 1)
    {
        if (is_int($diff)) {
            return $this->handle->hIncrBy($this->name, $key, $diff);
        }
        return $this->handle->hIncrByFloat($this->name, $key, $diff);
    }
2371
public function increment($key, $steps = 1)
    {
        $previous = $this->has($key) ? $this->get($key) : 0;
        $previous += $steps;
        $this->put($key, $previous);

        return $previous;
    }
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);
        }
    }
521478
public function increment($key, $val = 1)
    {
        return apc_inc($this->conf['prefix'] . $key, abs(intval($val)));
    }
1276197
public function increment($key, $step = 1)
    {
        $this->initializeOnDemand();

        if ($this->cacheMapper->increment($key, $step)) {
            // Synchronize with the current state
            $value = $this->get($key);
            $this->set($key, $value + $step, $this->getKeyTtl($key));

            return true;
        } else {
            return false;
        }
    }
702333
public function increment($key, $offset = 1)
    {
        return $this->memcached ? $this->memcached->increment($key, $offset) : false;
    }
517920
public function increment($key, $delta = 1)
    {
        if ($this->has($key)) {
            $this->set(
                $key, 
                $this->get($key) + $delta
            );
        } else {
            $this->set($key, $delta);
        }

        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'];
    }
774212
public function increaseBy($key, $value) {
		$valueOld = $this->get($key, 0);
		if (is_numeric($value) && is_numeric($valueOld)) {
			$this->add($key, $value + $valueOld);
			return $value + $valueOld;
		}
	}
868093
protected function incrementInternal($key, $offset = 1, $initial = 0, $expiry = 0)
    {
        if ($this->hasInternal($key)) {
            $oldValue = $this->getInternal($key);
            if (!is_int($oldValue)) {
                throw new UnexpectedValueException(sprintf(
                    'Method increment() requires existing value to be integer, %s found.',
                    gettype($oldValue)
                ));
            }
            $value = $oldValue + $offset;
        } else {
            $value = $initial;
        }
        // setInternal() always returns true without casToken argument.
        $this->setInternal($key, $value, $expiry);
        return $value;
    }
620158
public function decrement($key, $value = 1)
    {
        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
            return $current - $value;
        });
    }
746948
public function zIncrBy($key, $member, $increment = 1) {
        return $this->send(['zincrby', $key, $increment, $member], function ($response) {
            return (float) $response;
        });
    }
487360
public function increment($key, $offset = 1)
    {
        $duration = $this->_config['duration'];
        $key = $this->_key($key);

        $value = (int)$this->_Redis->incrBy($key, $offset);
        if ($duration > 0) {
            $this->_Redis->setTimeout($key, $duration);
        }

        return $value;
    }
1273525
public function increment($key, $offset = 1)
    {
        $key = $this->_key($key);

        return xcache_inc($key, $offset);
    }
491388
public function incr($key, $increment = 1) {
        if ($increment === 1) {
            return $this->send(['incr', $key]);
        }

        return $this->send(['incrby', $key, $increment]);
    }
1159954
public function decrement($key, $steps = 1)
    {
        $key = "integer-store::$key";

        if (!isset($this->cache[$key])) {
            $this->cache[$key] = 0;
        }

        $this->cache[$key] -= $steps;

        return $this->cache[$key];
    }
325118
public static function increment(string $key, int $howMuch = 1): int
    {
        return static::getAdapter()->increment($key, $howMuch);
    }