Abyss-lord commented on code in PR #7460:
URL: https://github.com/apache/gravitino/pull/7460#discussion_r2168003065
##########
docs/gravitino-server-config.md:
##########
@@ -75,6 +75,56 @@ We strongly recommend that you change the default value of
`gravitino.entity.sto
For H2 database, All tables needed by Gravitino are created automatically when
the Gravitino server starts up. For MySQL, you should firstly initialize the
database tables yourself by executing the ddl scripts in the
`${GRAVITINO_HOME}/scripts/mysql/` directory.
+### Storage Cache configuration
+
+To enable storage caching, please modify the following settings in the
`${GRAVITINO_HOME}/conf/gravitino.conf` file:
+
+```
+# Whether to enable the cache
+gravitino.cache.enabled=true
+
+# Specify the cache implementation (no need to use the fully qualified class
name)
+gravitino.cache.implementation=caffeine
+```
+
+| Configuration Key | Description
| Default Value |
+|----------------------------------|--------------------------------------------|------------------------|
+| `gravitino.cache.enabled` | Whether to enable caching
| `true` |
+| `gravitino.cache.implementation` | Specifies the cache implementation
| `caffeine` |
+| `gravitino.cache.maxEntries` | Maximum number of entries allowed in
cache | `10000` |
+| `gravitino.cache.expireTimeInMs` | Cache expiration time (in milliseconds)
| `3600000` (about 1 hr) |
+| `gravitino.cache.enableStats` | Whether to enable cache statistics
logging | `false` |
+| `gravitino.cache.enableWeigher` | Whether to enable weight-based eviction
| `true` |
Review Comment:
Fix, add `require` and `since version` columns.
--
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]