<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def put(self, url, html, cache_info=None):
 """ Put response into cache :param url: Url to cache :type url: str | unicode :param html: HTML content of url :type html: str | unicode :param cache_info: Cache Info (default: None) :type cache_info: floscraper.models.CacheInfo :rtype: None """

        key = hashlib.md5(url).hexdigest()

        try:
            self._cache_set(key, html)
        except:
            self.exception("Failed to write cache")
            return
        self.update(url, cache_info)