private List<CacheKeyEntity> buildCacheKeyList(String startTime, String endTime, String inlongGroupId,
            String inlongStreamId, String auditId, String auditTag) {
        List<CacheKeyEntity> keyList = new LinkedList<>();
        try {
            LocalDateTime startDateTime = LocalDateTime.parse(startTime, FORMATTER_YYMMDDHHMMSS);
            LocalDateTime endDateTime = LocalDateTime.parse(endTime, FORMATTER_YYMMDDHHMMSS);
            LocalDateTime nowDateTime = LocalDateTime.now();
            LocalDateTime maxDateTime = endDateTime.isBefore(nowDateTime) ? endDateTime : nowDateTime;

            for (long index = 0; index < MAX_CACHE_KEY_SIZE; index++) {
                LocalDateTime currentDateTime = startDateTime.plusMinutes(index * auditCycle.getValue());
                if (!currentDateTime.isBefore(maxDateTime)) {
                    break;
                }
                String currentTime = currentDateTime.format(FORMATTER_YYMMDDHHMMSS);
                String cacheKey =
                        CacheUtils.buildCacheKey(currentTime, inlongGroupId, inlongStreamId, auditId, auditTag);
                keyList.add(new CacheKeyEntity(cacheKey, currentTime,
                        currentDateTime.plusMinutes(auditCycle.getValue()).format(FORMATTER_YYMMDDHHMMSS)));
            }
        } catch (Exception exception) {
            LOGGER.error("It has exception when build cache key list!", exception);
        }
        return keyList;
    }
@param startTime
@param endTime
@param inlongGroupId
@param inlongStreamId
@param auditId
@param auditTag
@return
inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache/AbstractCache.java