Decrements the value of an integer cached key.
If the cache key is not an integer it will be treated as 0

@param string $key Identifier for the data
@param int $offset How much to subtract
@return bool|int New decremented value, false otherwise
488035
public function decrement($key, $offset = 1)
    {
        $key = $this->_key($key);

        return xcache_dec($key, $offset);
    }
635824
public function dec($key, $step = 1) {
        X::logger()->trace("RCache dec '$key' by $step");
        if ($step > 1) {
            return $this->cache->decrBy($key, $step);
        }

        return $this->cache->decr($key);
    }
951562
public function decrement(string $key, int $step = 1): int {
		return $this->driver->decrement($key, abs($step));
	}
32808
public function decrement($key, $step = 1)
    {
        $success = false;

        return wincache_ucache_dec($this->prefixKey . $key, $step, $success);
    }
116965
public function decrement($key, $offset=1, $initial_value=0, $expiry=0) {
		return $this->cache->decrement($this->prefix.$key, $offset, $initial_value, $expiry);
	}
840589
public function decrement($key, $value = 1)
	{
		return $this->memcache->decrement($this->prefix.$key, $value);
	}
939288
public function decrement($key, $value = 1)
    {
        $this->store->decrement($this->taggedItemKey($key), $value);
    }
802915
def decrement(self, key, value=1):
        
        return self._redis.decr(self._prefix + key, value)
572913
public function decrement($key, $offset = 1)
    {
        $duration = $this->_config['duration'];
        $key = $this->_key($key);

        $value = (int)$this->_Redis->decrBy($key, $offset);
        if ($duration > 0) {
            $this->_Redis->setTimeout($key, $duration);
        }

        return $value;
    }
744539
public function decrement(string $key, int $step = 1): int {
		return $this->increment($key, $step * -1);
	}
575899
public function increment($key, $steps = 1)
    {
        $key = "integer-store::$key";

        if (!isset($this->cache[$key])) {
            $this->cache[$key] = 0;
        }

        $this->cache[$key] += $steps;

        return $this->cache[$key];
    }
702333
public function increment($key, $offset = 1)
    {
        return $this->memcached ? $this->memcached->increment($key, $offset) : false;
    }
1358245
public function offsetExists($offset)
    {
        $value = $this->db->querySingle('SELECT value FROM cache WHERE key = "'.$offset.'"');
        if ($value === false || $value === null) {
            return false;
        }

        return true;
    }
725370
public function decrement($key, $value = 1)
	{
		$this->storage[$key] = $this->storage[$key] - $value;

		return $this->storage[$key];
	}
499336
public function increment($key, $step = 1)
    {
        if (!$this->enabled)
            return false;

        $has_replaced = $has_set = false;
        try {
            // Store the cache object
            $nKey = $this->key($key);
            $has_replaced = @$this->getConnection()->add($nKey, $step, 0);
            if (!$has_replaced) {
                $has_set = @$this->getConnection()->increment($nKey, $step);
            }

        } catch (Exception $e) {
            throw new CacheException($e->getMessage(), $e->getCode());
        }

        $this->Logger->debug("". (($has_replaced || $has_set) ? "Successfully" : "Failed to") . " increment key '{$key}'\n");
//        $this->Logger->debug($data);

        return $has_replaced ? $step : $has_set;
    }
928689
public function decr($key, $decrement = 1) {
        if ($decrement === 1) {
            return $this->send(['decr', $key]);
        }

        return $this->send(['decrby', $key, $decrement]);
    }
952330
public function decrement($key, $offset=1, $initial_value=0, $expiry=0) {
		CacheFactory::getCache()->decrement($key, $offset, $initial_value, $expiry);
	}