def set_to_cache(self):
try:<EOL><INDENT>cache.set(self._get_cache_key(), {<EOL>'<STR_LIT>': self,<EOL>'<STR_LIT:url>': self.get_url(),<EOL>})<EOL><DEDENT>except (PicklingError, AttributeError):<EOL><INDENT>msg = "<STR_LIT>"<EOL>raise NotImplementedError(msg % self.__class__.__name__)<EOL><DEDENT>
Add widget object to Django's cache.

You may need to overwrite this method, to pickle all information
that is required to serve your JSON response view.