def _cache(self, response, key):
<EOL>thetime = datetime.datetime.utcnow().replace(tzinfo=pytz.timezone("<STR_LIT>"))<EOL>self.templates[key] = {"<STR_LIT>": response.json(), "<STR_LIT>": thetime}<EOL>return copy.deepcopy(response.json())<EOL>
Add a retrieved template to the cache for 304 checking
accepts a dict and key name, adds the retrieval time, and adds both
to self.templates as a new dict using the specified key