def incr ( self , key , incr_by = 1 ) : return self . database . hincrby ( self . key , key , incr_by )
how to increase the value of a key in python
Increment the key by the given amount .
def incr(self, key, incr_by=1):
        """Increment the key by the given amount."""
        return self.database.hincrby(self.key, key, incr_by)