def _get_cache_dates(self):
all_dates = self.cache.get_dates_for_project(self.project_name)<EOL>dates = []<EOL>last_date = None<EOL>for val in sorted(all_dates):<EOL><INDENT>if last_date is None:<EOL><INDENT>last_date = val<EOL>continue<EOL><DEDENT>if val - last_date > timedelta(hours=<NUM_LIT>):<EOL><INDENT>logger.warning("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", last_date, val)<EOL>dates = []<EOL><DEDENT>last_date = val<EOL>dates.append(val)<EOL><DEDENT>for idx, cache_date in enumerate(dates):<EOL><INDENT>data = self._cache_get(cache_date)<EOL>if not self._is_empty_cache_record(data):<EOL><INDENT>logger.debug("<STR_LIT>", cache_date)<EOL>return dates[idx:]<EOL><DEDENT><DEDENT>return dates<EOL>
Get s list of dates (:py:class:`datetime.datetime`) present in cache,
beginning with the longest contiguous set of dates that isn't missing
more than one date in series.

:return: list of datetime objects for contiguous dates in cache
:rtype: ``list``