Decrease the value of ``key`` in hash ``name`` by ``amount``. If no key
        exists, the value will be initialized as 0 - ``amount`` 

        :param string name: the hash name
        :param string key: the key name        
        :param int amount: increments
        :return: the integer value of ``key`` in hash ``name``
        :rtype: int

        >>> ssdb.hdecr('hash_2', 'key1', 7)
        35
        >>> ssdb.hdecr('hash_2', 'key2', 3)
        0
        >>> ssdb.hdecr('hash_2', 'key_not_exists', 101)
        -101
        >>> ssdb.hdecr('hash_not_exists', 'key_not_exists', 8848)
        -8848

def hdecr(self, name, key, amount=1):
        """
        Decrease the value of ``key`` in hash ``name`` by ``amount``. If no key
        exists, the value will be initialized as 0 - ``amount`` 

        :param string name: the hash name
        :param string key: the key name        
        :param int amount: increments
        :return: the integer value of ``key`` in hash ``name``
        :rtype: int

        >>> ssdb.hdecr('hash_2', 'key1', 7)
        35
        >>> ssdb.hdecr('hash_2', 'key2', 3)
        0
        >>> ssdb.hdecr('hash_2', 'key_not_exists', 101)
        -101
        >>> ssdb.hdecr('hash_not_exists', 'key_not_exists', 8848)
        -8848
        """                                
        amount = get_positive_integer('amount', amount)        
        return self.execute_command('hdecr', name, key, amount)