@param     $key
@param int $value

@return int the new value
971700
public function decrement($key, $value = 1)
    {
        if ($this->exists($key)) {
            return self::$redis->decrBy($key, $value);
        } else {
            $this->set($key, -$value);

            return -$value;
        }
    }
637412
public static function set(string $key, $value)
    {
        return self::getViewHelper()->getView()->addValue($key, $value);
    }
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;
		}
	}
131533
public function param($key, $value)
    {
        $this->params = array_merge($this->params ?? [], [$key => $value]);
        return $this;
    }
119230
public function increment($key, $value = 1)
    {
        return $this->connection()->incrBy($this->prefix . $key, $value);
    }
1130152
public function offsetSet($key, $value)
    {
        if ($key !== null) {
            $this->data[$key] = $value;
        } else {
            $this->data[] = $value;
        }

        return $this;
    }
648002
public function increment($key, $value = 1)
    {
        return $this->memcached->increment($this->prefix.$key, $value);
    }
796613
public function append(string $key, $value)
    {
        $this->content->put($key, $value);

        return $this;
    }
1253369
public function increment($key, $value = 1)
    {
        $cached = $this->get($key);

        if (is_numeric($cached)) {
            $cached += $value;
            $this->set($key, $cached);
			return $cached;
		}

        return false;
    }
989400
public function set($key, $value = null)
    {
        return self::setValue($this->data, $key, $value);
    }
1335748
public function with($key, $value = '')
    {
        if (is_array($key)) {
            $this->appends = $key;
        } elseif (is_callable($value)) {
            $this->appends[$key] = value($value);
        } else {
            $this->appends[$key] = value($value);
        }

        return $this;
    }
637586
public function increment($key, $value = 1)
    {
        if (! isset($this->storage[$key])) {
            $this->forever($key, $value);

            return $this->storage[$key]['value'];
        }

        $this->storage[$key]['value'] = ((int) $this->storage[$key]['value']) + $value;

        return $this->storage[$key]['value'];
    }
996373
public static function setVar($key, $value)
    {
        $var = new Vars($key);
        $var->key = $key;
        $var->value = $value;
        return $var->save();
    }
223029
public function set($key, $value)
    {
        if (null === $value) {
            return $this->remove($key);
        }
        $this->clearRemoval($key);

        $original = $this->getOriginal($key);

        if ($value instanceof \stdClass && $original instanceof \stdClass) {
            if ($value == $original) {
                $this->clearChange($key);
            } else {
                $this->current[$key] = $value;
            }
            return $this;
        }

        if ($value === $original) {
            $this->clearChange($key);
        } else {
            if (($value instanceof \DateTime && $original instanceof \DateTime) && ($value->getTimestamp() === $original->getTimestamp())) {
                $this->clearChange($key);
            } else {
                $this->current[$key] = $value;
            }
        }
        return $this;
    }
387244
public function set($key, $value)
    {
        $hash = $this->key_to_hash($key);
        $this->array[$hash] = $value;
        return $this;
    }
1253801
public function increment($key, $value = 1)
    {
        return $this->redisServer->getHashClient($key)->incrBy($key, $value);
    }
19913
public function set($key, $value)
    {
        $keys = explode('.', $key);

        $data = &$this->parameters;

        while (count($keys) > 1) {
            $pkey = $keys[0];

            if (!array_key_exists($pkey, $data) || !is_array($data[$pkey])) {
                $data[$pkey] = [];
            }

            $data = &$data[$pkey];
            array_shift($keys);
        }

        $data[$keys[0]] = $value;

        return $this;
    }