nastra commented on a change in pull request #3543:
URL: https://github.com/apache/iceberg/pull/3543#discussion_r749204760



##########
File path: core/src/main/java/org/apache/iceberg/CatalogProperties.java
##########
@@ -30,6 +30,14 @@ private CatalogProperties() {
   public static final String FILE_IO_IMPL = "io-impl";
   public static final String WAREHOUSE_LOCATION = "warehouse";
 
+  public static final String TABLE_CACHE_ENABLED = "cache-enabled";
+  public static final boolean TABLE_CACHE_ENABLED_DEFAULT = true;
+  public static final String TABLE_CACHE_EXPIRATION_ENABLED = 
"cache.expiration-enabled";

Review comment:
       I'm +1 for using a single property to control whether expiration is 
enabled and how long the expiration time is. This also makes other places in 
the code simpler in terms of checking, since you then only have to check 
`cache-enabled` & `cache.expiration-interval-ms`. 




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to