Decrement the value at the key index in session

@param string $key
@param number $dec
@return number
7729
public static function dec($key, $dec = 1) {
		return self::set ( $key, self::get ( $key, 0 ) - $dec );
	}
829331
public function dec($key) {
        $v = new DecimalValidator($this->shell->_unsafeVar[$key] ?? null, $this->shell);
        $v->_isUndefined = !array_key_exists($key, $this->shell->_unsafeVar);
        $this->shell->subValidators[$key] = $v;
        return $v;
    }
703779
public function del($key) {

        $keys = func_get_args();
        $removed = 0;

        foreach ($keys as $key) {
            $sql = 'DELETE FROM '.$this->table.' WHERE `key`="'.$key.'"';
            $this->connection->exec($sql);
            $removed++;
        }

        return $removed;
    }
1145567
public function increment(string $key, int $step = 1): int {
		$return_value = 0;
		$success      = $this->lock($key, function($handle) use ($step, &$return_value) {
			$value      = $this->getWithLock($handle);
			$new_value  = (int)$value + $step; // (int)false === 0
			$expire     = $this->ttlWithLock($handle);
			$new_expire = ($expire === -2) ? -1 : $expire;
			if ($this->setWithLock($handle, (string)$new_value, $new_expire)) {
				$return_value = $new_value;
			}
		});
		if ($success) {
			return $return_value;
		}
		else
			throw new Exception('Manager Increment Error!');
	}
829519
public function remove($key)
    {
        $value = null;
        if (isset($_SESSION[$key])) {
            $value = $_SESSION[$key];
            unset($_SESSION[$key]);
        }
        return $value;
    }
277223
public function decrement($key, $step = 1)
    {
        $value = $this->get($key);
        $this->set($key, $value - $step);
    }
909935
public function setFormat($key, $decimals = 0, $dec_point = '.', $thousands_sep = ' ')
	{
		$this->format[$key] = [$decimals, $dec_point, $thousands_sep];

		return $this;
	}
1269925
public function decrement($key, $value = 1)
    {
        return $this->redisServer->getHashClient($key)->decrBy($key, $value);
    }
921475
public function dec($key, $step = 1, &$success = null)
	{
		return $this->atomicAdjust($this->getPath($key), -$step, $success);
	}
313405
function del($key)
    {
        $index = array_search($key, $this->keys);

        if ($index !== false) {
            unset($this->keys[$index]);
            unset($this->values[$index]);
            $this->_reflow();
            return true;
        }
        return false;
    }
116965
public function decrement($key, $offset=1, $initial_value=0, $expiry=0) {
		return $this->cache->decrement($this->prefix.$key, $offset, $initial_value, $expiry);
	}
334379
public static function getAndRemove(string $key)
    {
        static::startSessionIfNotHasStartedForceWrite();

        $value = static::get($key);
        static::remove($key);

        return $value;
    }
647011
public function decrBy($key, $decrement) {
        return $this->getHandler($this->judge(__FUNCTION__))->decrBy($key, $decrement);
    }
630304
static void decrementKey(byte[] key)
  {
    for (int i = key.length - 1; i >= 0; i--) {
      int v = key[i] & 0xff;
      
      if (v > 0) {
        key[i] = (byte) (v - 1);
        return;
      }
      
      key[i] = (byte) 0xff;
    }
  }
323439
public function decrement($key, $step)
    {
        $value = $this->getValueByKey($key, false);
        $this->alter($key, $value - $step);
    }
722205
public function decr($key)
    {
        if ($this->isMappedKey($key)) {
            return false;
        }
        return $this->getDriver()->decr($key);
    }
669200
public function decrement($key, $val = 1)
    {
        return apc_dec($this->conf['prefix'] . $key, abs(intval($val)));
    }