<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set(self, response: 'requests.Response') -> None: """Adds a response to the cache. Args: response: response from ESI Returns: None """

        self.data[response.url] = SavedEndpoint(
            response.json(),
            self._get_expiration(response.headers)
        )