Abyss-lord commented on code in PR #7200:
URL: https://github.com/apache/gravitino/pull/7200#discussion_r2115205931


##########
core/src/main/java/org/apache/gravitino/Configs.java:
##########
@@ -343,4 +343,48 @@ private Configs() {}
           .stringConf()
           .toSequence()
           .createWithDefault(Collections.emptyList());
+
+  // Maximum number of entries in the cache
+  public static final ConfigEntry<Integer> CACHE_MAX_ENTRIES =
+      new ConfigBuilder("gravitino.cache.maxEntries")
+          .doc("Maximum number of entries allowed in the cache.")
+          .version(ConfigConstants.VERSION_0_10_0)
+          .intConf()
+          .checkValue(value -> value > 0, 
ConfigConstants.POSITIVE_NUMBER_ERROR_MSG)
+          .createWithDefault(10_000);
+
+  // Whether to enable cache expiration
+  public static final ConfigEntry<Boolean> CACHE_EXPIRATION_ENABLED =
+      new ConfigBuilder("gravitino.cache.expiration.enabled")
+          .doc("Whether to enable cache entry expiration based on time.")
+          .version(ConfigConstants.VERSION_0_10_0)
+          .booleanConf()
+          .createWithDefault(true);

Review Comment:
   Fix



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to