def set(self, project, date, data, data_ts):
data['<STR_LIT>'] = {<EOL>'<STR_LIT>': project,<EOL>'<STR_LIT:date>': date.strftime('<STR_LIT>'),<EOL>'<STR_LIT>': time.time(),<EOL>'<STR_LIT:version>': VERSION,<EOL>'<STR_LIT>': data_ts<EOL>}<EOL>fpath = self._path_for_file(project, date)<EOL>logger.debug('<STR_LIT>',<EOL>project, date.strftime('<STR_LIT>'), fpath)<EOL>with open(fpath, '<STR_LIT:w>') as fh:<EOL><INDENT>fh.write(json.dumps(data))<EOL><DEDENT>
Set the cache data for a specified project for the specified date.

:param project: project name to set data for
:type project: str
:param date: date to set data for
:type date: datetime.datetime
:param data: data to cache
:type data: dict
:param data_ts: maximum timestamp in the BigQuery data table
:type data_ts: int