dev add cache for search
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-21 16:42:50 +07:00
parent 81130fc238
commit 246d55da55
@@ -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);