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