Increment value.

@param string $key Counter key.
@param float|int $value Increment by value.
@param \DatePeriod $period Date period.
@return void
432990
public function increment($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->increment($key, $value);
        } else {
            $this->incrementForPeriod($key, $value, $period);
        }
    }
1018637
public function push($value, $key = null)
    {
        if (is_null($key)) {
            $this->items[] = $value;
        } else {
            $this->items[$key] = $value;
        }
    }
1336858
protected function setAsFloat($key, $value)
    {
        $this->checkForNonEmptyKey($key);

        $this->set($key, (float)$value);
    }
715655
public function put($key, $value, $minutes)
    {
        if ($minutes instanceof \Datetime) {
            $seconds = $minutes->getTimestamp() - time();
        } else {
            $seconds = $minutes * 60;
        }

        $this->cache->save($key, $value, $seconds);
    }
429953
final public static function SetTokenPeriod( int $period ) : void {
        
        self::SetConfigFromSetter(
                $period,
                self::akTokenPeriod,
                self::ValidateTokenPeriod( )
        );
        
    }
1211480
public function increment($key, $value = 1)
    {
        return $this->connection()->incrby($this->prefix.$key, $value);
    }
880657
public void setPeriod(@Nullable Period period) {
    checkState(!initialized, "Period have already been initialized");
    this.period = period;
    this.initialized = true;
  }
1025499
public static function addTo($key, $value)
  {
    if (isset(self::$vars[$key])) {
      self::$vars[$key] .= $value;
    } else {
      self::$vars[$key] = $value;
    }
  }
492806
@Override
    public void setUpdatePeriod(final String updatePeriod) {
        if (!PERIODS.contains(updatePeriod)) {
            throw new IllegalArgumentException("Invalid period [" + updatePeriod + "]");
        }
        this.updatePeriod = updatePeriod;
    }
252432
final public static function set($key, $value)
	{
		self::_checkInstance();
		self::$_instance->offsetSet($key, $value);
	}
535719
protected function set_period(int $period):void{

		if($period < 15 || $period > 60){
			throw new AuthenticatorException('Invalid period: '.$period);
		}

		$this->period = $period;
	}
939288
public function decrement($key, $value = 1)
    {
        $this->store->decrement($this->taggedItemKey($key), $value);
    }
168297
public function get($key, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            return new Value($this->repository->get($key));
        }

        return $this->getForPeriod($key, $period);
    }
702146
public function set($key, $value) {
		$this->validateValue($value);
		$this->variables[$key] = $value;
	}
599155
public function set(string $key, $value)
    {
        if (!isset($this->data[$this->activeAssetSourceIdentifier])) {
            $this->initializeData($this->activeAssetSourceIdentifier);
        }
        $this->data[$this->activeAssetSourceIdentifier][$key] = $value;
    }
1215685
public function decrement($key, $value = 1)
    {
        $this->store->decrement($this->itemKey($key), $value);
    }
484293
public function has($key, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            return new Exists($this->repository->has($key));
        }

        return $this->hasForPeriod($key, $period);
    }