dosubot[bot] commented on issue #2626:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2626#issuecomment-2272532271

   <!-- Answer -->
   要在 HugeGraph 中完全禁用点和边的缓存功能,除了设置 `vertex.cache_capacity` 和 
`edge.cache_capacity` 为 0,还需要将 `vertex.cache_type` 和 `edge.cache_type` 
设置为空值。仅仅设置缓存容量和过期时间为 0 是不够的。
   
   以下是完整的配置示例:
   
   ```properties
   vertex.cache_type=
   vertex.cache_capacity=0
   vertex.cache_expire=0
   
   edge.cache_type=
   edge.cache_capacity=0
   edge.cache_expire=0
   ```
   
   此外,确保在 `CachedGraphTransaction` 类中的 `enableCacheVertex` 和 `enableCacheEdge` 
方法返回 
`false`,因为这些方法会检查缓存容量以确定是否启用缓存<sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/config/CoreOptions.java)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java)</sup>。
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


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