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;
    }
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;
    }
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 ; }
Decrements the value of an integer cached key & update the expiry time

@param string $key Identifier for the data
@param int $offset How much to subtract
@return bool|int New decremented value, false otherwise
Decrements the value of an integer cached key & update the expiry time