Decrements a value

@param string $key
@param integer $step
@return void
323439
public function decrement($key, $step)
    {
        $value = $this->getValueByKey($key, false);
        $this->alter($key, $value - $step);
    }
669200
public function decrement($key, $val = 1)
    {
        return apc_dec($this->conf['prefix'] . $key, abs(intval($val)));
    }
89850
public function update(Tensor $step) : void
    {
        $this->w = $this->w()->subtract($step);
    }
67308
protected function setKey($key)
    {
        // If a handler switches key, we need to decrement the counter for the old
        // key, and increment the counter for the new key.
        $this->removeKey();

        // Set the new key, and increment the counter appropriately.
        $this->key = $key;
        if (isset($key)) {
            static::$keys[$key] = isset(static::$keys[$key]) ? static::$keys[$key] + 1 : 1;
        }
    }
1269925
public function decrement($key, $value = 1)
    {
        return $this->redisServer->getHashClient($key)->decrBy($key, $value);
    }
856256
public function inc($key, $step = 1) {
        X::logger()->trace("RCache inc '$key' by $step");
        if ($step > 1) {
            return $this->cache->incrBy($key, $step);
        }

        return $this->cache->incr($key);
    }
692938
public function removeStep(Step $step)
    {
        if ($this->steps->contains($step)) {
            $this->steps->removeElement($step);
        }

        return $this;
    }
807154
public function inc($key, $step = 1, &$success = null)
	{
		$oldVal = (int)$this->fetch($key);
		$this->data[$key][0] = $oldVal + $step;
		$success = true;

		return $this->data[$key][0];
	}
1342351
public function incrementByPk($primary_key, $keys, $step = 1)
    {
        if ($this->is_single) {
            return $this->incrementOrDecrementByPk($primary_key, $keys, $step);
        }
        return false;
    }
399526
function progress( $step )
    {
        $totalSteps = 0;
        foreach ( $this->StepTable as $tableStep )
        {
            if ( !isset( $tableStep['count_step'] ) or
                 $tableStep['count_step'] )
                ++$totalSteps;
        }

        $currentStep = 0;
        foreach ( $this->StepTable as $key => $tableStep )
        {
            if ( $step['class'] == $tableStep['class'] )
            {
                break;
            }
            else if ( !isset( $tableStep['count_step'] ) or
                      $tableStep['count_step'] )
                ++$currentStep;
        }

        return (int) ( $currentStep * 100 / ( $totalSteps - 1 ) );
    }
1190846
public function setStep($step)
    {
        $this->step = (integer)$step;
        $this->hasStep = true;

        return $this;
    }
295334
public function decrement($key, $value = 1)
    {
        return $this->connection()->decrBy($this->prefix . $key, $value);
    }
2371
public function increment($key, $steps = 1)
    {
        $previous = $this->has($key) ? $this->get($key) : 0;
        $previous += $steps;
        $this->put($key, $previous);

        return $previous;
    }
620158
public function decrement($key, $value = 1)
    {
        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
            return $current - $value;
        });
    }
744539
public function decrement(string $key, int $step = 1): int {
		return $this->increment($key, $step * -1);
	}
1170620
public function decrement($key, $offset = 1)
    {
        $key = $this->_key($key);

        return wincache_ucache_dec($key, $offset);
    }
550466
public function increment($key, $step = 1)
    {
        $value = $this->get($key);
        $this->set($key, $value + $step);
    }