英文:
can Apache Ignite near cache be off-heap?
问题
"文档中提到:“Near caches store data in the on-heap memory。”,但我知道我们可以配置缓存为在堆内存/on-heap或堆外内存/off-heap,只是不确定是否适用于近缓存。
> CacheConfiguration.setOnheapCacheEnabled(false)"
英文:
the docs says "Near caches store data in the on-heap memory. ",
https://ignite.apache.org/docs/2.15.0/configuring-caches/near-cache
but I know we can configure a cache being on-heap/off-heap, just not sure if it applies to near cache too.
> CacheConfiguration.setOnheapCacheEnabled(false)
答案1
得分: 2
不是简短的答案。近缓存始终在堆上。
我还应该补充说明,setOnHeapCacheEnabled不配置缓存是在堆上还是在堆外。Ignite缓存始终在堆外。在堆缓存是在堆外缓存之外的。
英文:
No is the short answer. A near cache is always on-heap.
I should also add that setOnHeapCacheEnabled does not configure whether a cache is on- or off-heap. An Ignite cache is always off-heap. An on-heap cache is in addition to the off-heap cache.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论