{@inheritdoc}

@param string $key
@param mixed  $steps

@return int|bool
2371
public function increment($key, $steps = 1)
    {
        $previous = $this->has($key) ? $this->get($key) : 0;
        $previous += $steps;
        $this->put($key, $previous);

        return $previous;
    }
323439
public function decrement($key, $step)
    {
        $value = $this->getValueByKey($key, false);
        $this->alter($key, $value - $step);
    }
1212551
protected function &getStackByReference(&$key)
    {
        $key = explode(self::SEPARATOR, $key);

        if (count($key) > 1) {
            $arr = &$this->getStackReference($this->storage, array_slice($key, 0, -1), false);
        } else {
            $arr = &$this->storage;
        }

        $key = array_slice($key, -1);
        $key = reset($key);

        return $arr;
    }
889664
public function inc($name, $step = 1)
    {
        return self::$instance->incrBy($this->getCacheKey($name), $step);
    }
498427
public function dec($name, $step = 1)
    {
        return self::$instance->decrBy($this->getCacheKey($name), $step);
    }
893694
public function updateTaskProgress($id, &$step, $maxStep = 0) {
		if (empty($id) || !$this->exists($id) ||
			($maxStep < 1) || ($maxStep < $step)) {
			return false;
		}

		$step++;
		$progress = $step / $maxStep;

		return $this->updateProgress($id, $progress);
	}
514192
public function inc(string $name, int $step = 1)
    {
        $this->writeTimes++;

        $key = $this->getCacheKey($name);

        if ($this->handler->get($key)) {
            return $this->handler->increment($key, $step);
        }

        return $this->handler->set($key, $step);
    }
854942
public function inc($key, $step = 1, &$success = null)
	{
		return $this->atomicAdjust($this->getPath($key), $step, $success);
	}
383697
final public function decrementColumnByPk($pk, $column, $step = 1, $table = null)
    {
        return $this->db->decrement($this->getTable($table), $column, $step)
                        ->whereEquals($this->getPk(), $pk)
                        ->execute();
    }
679945
private function canOmitKey($key, & $nextIndex)
    {
        $result = $key === $nextIndex;

        if (\is_int($key)) {
            $nextIndex = max($key + 1, $nextIndex);
        }

        return $result;
    }
1229768
final public function incrementColumnByPk($pk, $column, $step = 1, $table = null)
    {
        return $this->db->increment($this->getTable($table), $column, $step)
                        ->whereEquals($this->getPk(), $pk)
                        ->execute();
    }
550466
public function increment($key, $step = 1)
    {
        $value = $this->get($key);
        $this->set($key, $value + $step);
    }
1163011
function nextStep( $step )
    {
        foreach ( $this->StepTable as $key => $tableStep )
        {
            if ( $step['class'] == $tableStep['class'] )
            {
                return $this->StepTable[++$key];
            }
        }
        $retValue = null;
        return $retValue;
    }
428202
public function addStep(Step $step)
    {
        if (!$this->steps->contains($step)) {
            $this->steps->add($step);
        }

        return $this;
    }
671221
public static function inc($key, $step = 1) {
        try {
            self::getCache()->inc($key, $step);
            self::release();
        } catch (\RuntimeException $e) {
            self::release();
            throw $e;
        } catch (\Error $e) {
            self::release();
            throw $e;
        }
    }
692938
public function removeStep(Step $step)
    {
        if ($this->steps->contains($step)) {
            $this->steps->removeElement($step);
        }

        return $this;
    }
277223
public function decrement($key, $step = 1)
    {
        $value = $this->get($key);
        $this->set($key, $value - $step);
    }