FINERACT-2262: Improve cache handling and add customization option
This commit is contained in:
+19
@@ -19,6 +19,7 @@
|
||||
|
||||
package org.apache.fineract.infrastructure.core.config;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -81,6 +82,8 @@ public class FineractProperties {
|
||||
|
||||
private FineractSqlValidationProperties sqlValidation;
|
||||
|
||||
private FineractCache cache;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public static class FineractTenantProperties {
|
||||
@@ -578,4 +581,20 @@ public class FineractProperties {
|
||||
private String name;
|
||||
private String pattern;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public static class FineractCache {
|
||||
|
||||
private FineractCacheDetails defaultTemplate;
|
||||
private Map<String, FineractCacheDetails> customTemplates = new HashMap<>();
|
||||
}
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public static class FineractCacheDetails {
|
||||
|
||||
private Duration ttl;
|
||||
private Integer maximumEntries;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user