This commit is contained in:
@@ -67,14 +67,15 @@ public class ApplicationConfig {
|
||||
"reverseImageSearch", "parsedImages");
|
||||
|
||||
cacheManager.setCaffeine(Caffeine.newBuilder()
|
||||
.maximumSize(10000)
|
||||
.maximumSize(2_000)
|
||||
.expireAfterWrite(1, TimeUnit.HOURS)
|
||||
.expireAfterAccess(30, TimeUnit.MINUTES)
|
||||
.softValues()
|
||||
.recordStats()
|
||||
);
|
||||
|
||||
return cacheManager;
|
||||
}
|
||||
|
||||
// private List<FileProtector.FileInfo> loadProcessingFile() {
|
||||
// List<FileEntity> byProtectionStatus =
|
||||
// fileEntityRepository.findByProtectionStatus(ProtectionStatus.PROCESSING);
|
||||
|
||||
Reference in New Issue
Block a user