18 lines
560 B
Java
18 lines
560 B
Java
package com.nanri.aiimage.config;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
@Data
|
|
@ConfigurationProperties(prefix = "aiimage.task-image-cache-cleanup")
|
|
public class TaskImageCacheCleanupProperties {
|
|
|
|
private boolean enabled = true;
|
|
private String cron = "0 30 2 * * *";
|
|
private int retentionDays = 3;
|
|
private int batchSize = 5000;
|
|
private int maxBatchesPerRun = 200;
|
|
private long maxBytes = 2L * 1024L * 1024L * 1024L;
|
|
private long targetBytes = 1L * 1024L * 1024L * 1024L;
|
|
}
|