def increment(self, key, value=1):
        """
        Increment the value of an item in the cache.

        :param key: The cache key
        :type key: str

        :param value: The increment value
        :type value: int

        :rtype: int or bool
        """
        raw = self._get_payload(key)

        integer = int(raw['data']) + value

        self.put(key, integer, int(raw['time']))

        return integer
def increment ( self , key , value = 1 ) : raw = self . _get_payload ( key ) integer = int ( raw [ 'data' ] ) + value self . put ( key , integer , int ( raw [ 'time' ] ) ) return integer
Increment the value of an item in the cache.

        :param key: The cache key
        :type key: str

        :param value: The increment value
        :type value: int

        :rtype: int or bool