public function decrement($key, $step = 1)
    {
        if (!$this->enabled)
            return false;

        $has_replaced = $has_set = false;
        try {
            // Store the cache object
            $nKey = $this->key($key);
            $has_set = @$this->getConnection()->decrement($nKey, $step);

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

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

        return $has_set;

    }
public function decrement($key, $step = 1)
    {
        if (!$this->enabled)
            return false;

        $has_replaced = $has_set = false;
        try {
            // Store the cache object
            $nKey = $this->key($key);
            $has_set = @$this->getConnection()->decrement($nKey, $step);

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

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

        return $has_set;

    }
public function decrement ( $ key , $ step = 1 ) { if ( ! $ this -> enabled ) return false ; $ has_replaced = $ has_set = false ; try { // Store the cache object $ nKey = $ this -> key ( $ key ) ; $ has_set = @ $ this -> getConnection ( ) -> decrement ( $ nKey , $ step ) ; } catch ( Exception $ e ) { throw new CacheException ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } $ this -> Logger -> debug ( "" . ( ( $ has_replaced || $ has_set ) ? "Successfully" : "Failed to" ) . " decrement key '{$key}'\n" ) ; //        $this->Logger->debug($data); return $ has_set ; }
Decrement a value in the cache store

@param string $key  Cache key associated to the data
@param int    $step Number to decrement by
@return int New value on success or FALSE on failure

@throws CacheException
Decrement a value in the cache store