Decrement the value of an item in the cache.

@param  string  $key
@param  mixed   $value
@return int|bool
511152
public function decrement($key, $value = 1)
    {
        return $this->memcached->decrement($this->prefix.$key, $value);
    }
277223
public function decrement($key, $step = 1)
    {
        $value = $this->get($key);
        $this->set($key, $value - $step);
    }
501363
public function increment($key, $value = 1)
    {
        try {
            $response = $this->dynamo->updateItem([
                'TableName' => $this->table,
                'Key' => [
                    $this->keyAttribute => [
                        'S' => $this->prefix.$key,
                    ],
                ],
                'ConditionExpression' => 'attribute_exists(#key) AND #expires_at > :now',
                'UpdateExpression' => 'SET #value = #value + :amount',
                'ExpressionAttributeNames' => [
                    '#key' => $this->keyAttribute,
                    '#value' => $this->valueAttribute,
                    '#expires_at' => $this->expirationAttribute,
                ],
                'ExpressionAttributeValues' => [
                    ':now' => [
                        'N' => (string) Carbon::now()->getTimestamp(),
                    ],
                    ':amount' => [
                        'N' => (string) $value,
                    ],
                ],
                'ReturnValues' => 'UPDATED_NEW',
            ]);

            return (int) $response['Attributes'][$this->valueAttribute]['N'];
        } catch (DynamoDbException $e) {
            if (Str::contains($e->getMessage(), 'ConditionalCheckFailed')) {
                return false;
            }

            throw $e;
        }
    }
576773
public function decrement($key, $value)
    {
        return $this->apcu ? apcu_dec($key, $value) : apc_dec($key, $value);
    }
802915
def decrement(self, key, value=1):
        
        return self._redis.decr(self._prefix + key, value)
708999
public function decrement($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->decrement($key, $value);
        } else {
            $this->decrementForPeriod($key, $value, $period);
        }
    }
243
public function decrement($id, $offset = 1)
	{
		$success = FALSE;
		$value = wincache_ucache_dec($id, $offset, $success);

		return ($success === TRUE) ? $value : FALSE;
	}
220875
public function decr($key, $value = 1) {
        $value = (int) $value;
        try {
            $result = ($value > 1)
                ? $this->getRedis()->decrBy($key, $value)
                : $this->getRedis()->decr($key);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
840589
public function decrement($key, $value = 1)
	{
		return $this->memcache->decrement($this->prefix.$key, $value);
	}
620158
public function decrement($key, $value = 1)
    {
        return $this->incrementOrDecrement($key, $value, function ($current, $value) {
            return $current - $value;
        });
    }
950620
public function set( $key, $value )
	{
		return $this->store->set( $key, $value, 0, $this->expires );
	}
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;
		}
	}
134096
public function decrement($key, $offset = 1)
    {
        $key = $this->_key($key);

        return apcu_dec($key, $offset);
    }
412250
public static function decrement(string $key, int $amount = 1, bool $prolong = true)
        {
            if (($cacheValue = self::GetInstance()->get("\$vxnKey:{$key}")) === false) {
                return false;
            }

            foreach ($cacheValue['$_tags'] as $tagName => $ver) {
                if ($ver && $ver != self::tagGetVer($tagName)) {
                    self::GetInstance()->delete("\$vxnKey:{$key}");

                    return false;
                }
            }

            $cacheValue['$_expire'] = ($prolong && $cacheValue['$_ttl']) ? (time() + $cacheValue['$_ttl']) : $cacheValue['$_expire'];

            return self::GetInstance()->set("\$vxnKey:{$key}",
                                            [
                                                '$_data'   => $cacheValue['$_data'] - $amount,
                                                '$_tags'   => $cacheValue['$_tags'],
                                                '$_ttl'    => $cacheValue['$_ttl'],
                                                '$_expire' => $cacheValue['$_expire'],
                                            ],
                                            null,
                                            $cacheValue['$_expire']);
        }
751626
public function set($key, $value)
    {
        return $this->memcache->set($key, $value, 0, $this->lifetime);
    }
197660
public function dec($property, $value = 1) {
		if (isset($this->_data[$property])) {
			$this->_data[$property] -= $value;
		} else {
			$this->_data[$property] =- $value;
		}
		
		$this->_changed[$property] = true;
		
		return $this->_data[$property];
	}
1586
public function dec($id, $value = 1) {
		if (! $this->connectionCheckStatus) {
			$this->addServer();
		}
		
		$id     = $this->prepareId($id);
		$result = $this->getClient()->decrement($id, $value);
		
		if ($result === false && $this->operationsExceptions) {
			throw new OperationFailed('Decrementing of the data in the cache failed, ID: "' . $id . '"');
		}
		
		return $result;
	}