def hostname_or_ip(self, address):
        result = self._cache.get(address, None)
        now = time.time()
        if result is None or result[0] <= now:
            logging.debug("Cache miss for %s in hostname_or_ip", address)
            result = (
                now + self.timeout,             # Expiration
                self._hostname_or_ip(address),  # Data
            )
            self._cache[address] = result

        return result[1]
dataset/ETHPy150Open dropbox/trapperkeeper/trapperkeeper/utils.py/CachingResolver.hostname_or_ip/original